18:22:56,330  INFO Version:43 - Hibernate Annotations 3.5.3-Final
  18:22:56,330  INFO Environment:570 - Hibernate 3.5.3-Final
  18:22:56,345  INFO Environment:603 - hibernate.properties not found
  18:22:56,345  INFO Environment:781 - Bytecode provider name : javassist
  18:22:56,345  INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
  18:22:56,392 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:22:56,392 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:22:56,392 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:22:56,392 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:22:56,408 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:22:56,423  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
  18:22:56,423  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:22:56,423  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:22:56,439 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:22:56,439 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:22:56,455 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:22:56,455 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:22:56,486 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:22:56,486 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:22:56,486 DEBUG Configuration:1479 - hibernate.connection.username=
  18:22:56,486 DEBUG Configuration:1479 - hibernate.connection.password=
  18:22:56,486 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:22:56,486 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:22:56,486 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:22:56,486 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:22:56,486 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@1bff8e70 [Attribute: name class value "sample.entity.Message"]
  18:22:56,501 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@16bd9ed [Attribute: name class value "sample.entity.Advert"]
  18:22:56,501 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@30f97aff [Attribute: name class value "sample.entity.Category"]
  18:22:56,501 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@9bc2c97 [Attribute: name class value "sample.entity.User"]
  18:22:56,501  INFO Configuration:1633 - Configured SessionFactory: null
  18:22:56,501 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 65192 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-609134388\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:22:56,501 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:22:56,501 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:22:56,501  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:22:56,501 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:22:56,501 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:56,548 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:56,548 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:56,548  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:22:56,564 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:56,564 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:56,579 DEBUG EntityBinder:338 - Import with entity name Message
  18:22:56,579  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:22:56,595 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:22:56,611 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:56,611 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:56,611 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:56,611 DEBUG PropertyBinder:254 - Building property id
  18:22:56,611 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:56,611 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:56,611 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:22:56,611 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:22:56,611 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:22:56,611 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:22:56,626 DEBUG PropertyBinder:254 - Building property messageText
  18:22:56,626 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:22:56,626  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:22:56,626 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:56,626 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:56,626 DEBUG EntityBinder:338 - Import with entity name Advert
  18:22:56,626  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:22:56,626 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:22:56,626 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:56,626 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:56,642 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:56,642 DEBUG PropertyBinder:254 - Building property id
  18:22:56,642 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:56,642 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:56,642 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:22:56,642 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:22:56,642 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:22:56,642 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:22:56,657 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:22:56,657 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:22:56,657 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:22:56,657 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:22:56,657 DEBUG PropertyBinder:254 - Building property categories
  18:22:56,657 DEBUG PropertyBinder:311 - Cascading categories with none
  18:22:56,657 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:22:56,657 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:22:56,657 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:22:56,657 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:22:56,657 DEBUG PropertyBinder:254 - Building property message
  18:22:56,673 DEBUG PropertyBinder:311 - Cascading message with null
  18:22:56,673 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:22:56,673 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:22:56,673 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:22:56,673 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:22:56,673 DEBUG PropertyBinder:254 - Building property title
  18:22:56,673 DEBUG PropertyBinder:311 - Cascading title with null
  18:22:56,673 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:22:56,673 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:22:56,673 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:22:56,673 DEBUG PropertyBinder:254 - Building property user
  18:22:56,673 DEBUG PropertyBinder:311 - Cascading user with none
  18:22:56,673  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:22:56,673 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:56,673 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:56,673 DEBUG EntityBinder:338 - Import with entity name Category
  18:22:56,673  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:22:56,689 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:56,689 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:56,689 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:56,689 DEBUG PropertyBinder:254 - Building property id
  18:22:56,689 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:56,689 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:56,689 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:22:56,689 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:22:56,689 DEBUG PropertyBinder:254 - Building property adverts
  18:22:56,689 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:22:56,689 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:22:56,689 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:22:56,689 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:22:56,689 DEBUG PropertyBinder:254 - Building property title
  18:22:56,689 DEBUG PropertyBinder:311 - Cascading title with null
  18:22:56,689  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:22:56,689 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:56,689 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:56,689 DEBUG EntityBinder:338 - Import with entity name User
  18:22:56,689  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:22:56,704 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:22:56,704 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:56,704 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:56,704 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:56,704 DEBUG PropertyBinder:254 - Building property id
  18:22:56,704 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:56,704 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:56,704 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:22:56,704 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:22:56,704 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:22:56,704 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:22:56,704 DEBUG PropertyBinder:254 - Building property name
  18:22:56,704 DEBUG PropertyBinder:311 - Cascading name with null
  18:22:56,704 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:22:56,704 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:22:56,704 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:22:56,704 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:22:56,704 DEBUG PropertyBinder:254 - Building property password
  18:22:56,704 DEBUG PropertyBinder:311 - Cascading password with null
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:22:56,704 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:22:56,704 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:56,736 DEBUG Configuration:1211 - processing extends queue
  18:22:56,736 DEBUG Configuration:1215 - processing collection mappings
  18:22:56,736 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:22:56,736 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:22:56,752 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:22:56,752 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:22:56,752 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:22:56,752 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:22:56,752 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:22:56,752 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:56,752 DEBUG Configuration:1234 - processing association property references
  18:22:56,752 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:56,752 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:56,752 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:56,752 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:56,752  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:22:56,752  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:22:56,752  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:22:56,768  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:22:57,019  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:22:57,019  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:22:57,019 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:57,019 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:57,679 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:57,679  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:22:57,679  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:22:57,695  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:22:57,710 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:22:57,710 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:57,710  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:22:57,710  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:22:57,710  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:22:57,710  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:22:57,710  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:22:57,710 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:22:57,710  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:22:57,710  INFO SettingsFactory:204 - Connection release mode: auto
  18:22:57,710  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:22:57,710  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:22:57,710  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:22:57,710  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:22:57,710  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:22:57,710  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:22:57,710  INFO SettingsFactory:251 - Query language substitutions: {}
  18:22:57,710  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:22:57,710  INFO SettingsFactory:261 - Second-level cache: enabled
  18:22:57,710  INFO SettingsFactory:265 - Query cache: disabled
  18:22:57,710  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:22:57,710  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:22:57,710  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:22:57,710 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:22:57,711  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:22:57,711  INFO SettingsFactory:313 - Statistics: disabled
  18:22:57,711  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:22:57,711  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:22:57,711  INFO SettingsFactory:336 - Named query checking : enabled
  18:22:57,711  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:22:57,758  INFO SessionFactoryImpl:199 - building session factory
  18:22:57,758 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:22:57,758 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:22:57,758 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:22:57,758 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 65192 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-609134388\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:22:57,758 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,758 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,758 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,758 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,883 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:22:57,883 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,883 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,898 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:22:57,898 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:22:57,898 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title2_ from Category category_ where category_.id=?
  18:22:57,898 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:22:57,898 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:22:57,898 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:22:57,898 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:22:57,898 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,898 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:22:57,898 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,898 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,898 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,914 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:22:57,914 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:22:57,914 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message1_, advert_.title as title1_, advert_.aduser as aduser1_ from Advert advert_ where advert_.id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:22:57,914 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@379bd896], incoming type = [org.hibernate.type.IntegerType@379bd896]
  18:22:57,914 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:22:57,914 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:22:57,914 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_0_ from Message message_ where message_.id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:22:57,914 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:57,914 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:57,914 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:22:57,914 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:22:57,914 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name3_, user_.password as password3_ from AdUser user_ where user_.id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:22:57,914 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:22:57,914 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:22:57,930 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:22:57,930 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:22:57,930 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:22:57,930 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:22:57,930 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:22:57,930 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:22:57,930 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:22:57,930 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:22:57,930 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:22:57,930 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for read only with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,945 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,945 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,945 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for read only with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:22:57,961 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_2_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id1_0_, advert1_.message as message1_0_, advert1_.title as title1_0_, advert1_.aduser as aduser1_0_, user2_.id as id3_1_, user2_.name as name3_1_, user2_.password as password3_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:22:57,961 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_1_1_, categories0_.categories_id as categories1_1_, category1_.id as id2_0_, category1_.title as title2_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:22:57,961 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
  18:22:57,976 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1035e9014a1035efe90000 (unnamed)
  18:22:57,976  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:22:57,976 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:22:57,976 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:57,976 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:57,976 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:57,976 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:57,976 DEBUG Configuration:1211 - processing extends queue
  18:22:57,976 DEBUG Configuration:1215 - processing collection mappings
  18:22:57,976 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:57,976 DEBUG Configuration:1234 - processing association property references
  18:22:57,976 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:57,976 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:57,976 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:57,976 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:57,976 DEBUG Configuration:1211 - processing extends queue
  18:22:57,976 DEBUG Configuration:1215 - processing collection mappings
  18:22:57,976 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:57,976 DEBUG Configuration:1234 - processing association property references
  18:22:57,976 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:57,976 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:57,976  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:22:57,976 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:22:57,976  INFO SchemaExport:251 - exporting generated schema to database
  18:22:57,976 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:57,976 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:57,976 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:57,992 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:22:58,132 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:22:58,163 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:22:58,179 DEBUG SchemaExport:377 - drop table AdUser
  18:22:58,210 DEBUG SchemaExport:377 - drop table Advert
  18:22:58,226 DEBUG SchemaExport:377 - drop table Category
  18:22:58,257 DEBUG SchemaExport:377 - drop table Message
  18:22:58,273 DEBUG SchemaExport:377 - drop table link_category_advert
  18:22:58,288 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:22:58,335 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:22:58,366 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:22:58,382 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:22:58,397 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:22:58,413 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:22:58,475 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:22:58,491 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:22:58,507  INFO SchemaExport:268 - schema export complete
  18:22:58,507 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:58,507 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:22:58,507 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:22:58,538 DEBUG SessionImpl:257 - opened session at timestamp: 14176111785
  18:22:58,538 DEBUG JDBCTransaction:82 - begin
  18:22:58,553 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:58,553 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:58,553 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:58,553 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:58,553 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:58,553 DEBUG JDBCContext:237 - after transaction begin
  18:22:58,553 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:22:58,553 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:22:58,553 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:22:58,553 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:22:58,553 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:22:58,569 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:22:58,569  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:22:58,569  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:22:58,569 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:22:58,569 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:22:58,569 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:22:58,569 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:22:58,569 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:22:58,569 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:22:58,569 DEBUG Configuration:1479 - hibernate.connection.username=
  18:22:58,569 DEBUG Configuration:1479 - hibernate.connection.password=
  18:22:58,569 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:22:58,569 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:22:58,569 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:22:58,569 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:22:58,569 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@521f5353 [Attribute: name class value "sample.entity.Message"]
  18:22:58,569 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@4a8d9bbd [Attribute: name class value "sample.entity.Advert"]
  18:22:58,569 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@4e64e979 [Attribute: name class value "sample.entity.Category"]
  18:22:58,569 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@6f5b06e7 [Attribute: name class value "sample.entity.User"]
  18:22:58,569  INFO Configuration:1633 - Configured SessionFactory: null
  18:22:58,569 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 65192 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-609134388\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:22:58,569 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:22:58,569 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:22:58,569  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:22:58,569 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:22:58,569 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:58,569 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:58,569 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:58,569  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:22:58,569 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:58,569 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:58,569 DEBUG EntityBinder:338 - Import with entity name Message
  18:22:58,569  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:22:58,569 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:22:58,569 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:58,569 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:58,569 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:58,585 DEBUG PropertyBinder:254 - Building property id
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:58,585 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:22:58,585 DEBUG PropertyBinder:254 - Building property messageText
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:22:58,585  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:58,585 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:58,585 DEBUG EntityBinder:338 - Import with entity name Advert
  18:22:58,585  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:58,585 DEBUG PropertyBinder:254 - Building property id
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:58,585 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:22:58,585 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:22:58,585 DEBUG PropertyBinder:254 - Building property categories
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading categories with none
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:22:58,585 DEBUG PropertyBinder:254 - Building property message
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading message with null
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:22:58,585 DEBUG PropertyBinder:254 - Building property title
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading title with null
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:254 - Building property user
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading user with none
  18:22:58,585  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:58,585 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:58,585 DEBUG EntityBinder:338 - Import with entity name Category
  18:22:58,585  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:58,585 DEBUG PropertyBinder:254 - Building property id
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:58,585 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:22:58,585 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:22:58,585 DEBUG PropertyBinder:254 - Building property adverts
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:22:58,585 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:22:58,585 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:22:58,585 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:22:58,585 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:22:58,585 DEBUG PropertyBinder:254 - Building property title
  18:22:58,585 DEBUG PropertyBinder:311 - Cascading title with null
  18:22:58,600  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:22:58,600 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:22:58,600 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:22:58,600 DEBUG EntityBinder:338 - Import with entity name User
  18:22:58,600  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:22:58,600 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:22:58,600 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:22:58,600 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:22:58,600 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:22:58,600 DEBUG PropertyBinder:254 - Building property id
  18:22:58,600 DEBUG PropertyBinder:311 - Cascading id with null
  18:22:58,600 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:22:58,600 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:22:58,600 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:22:58,600 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:22:58,600 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:22:58,600 DEBUG PropertyBinder:254 - Building property name
  18:22:58,600 DEBUG PropertyBinder:311 - Cascading name with null
  18:22:58,600 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:22:58,600 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:22:58,600 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:22:58,600 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:22:58,600 DEBUG PropertyBinder:254 - Building property password
  18:22:58,600 DEBUG PropertyBinder:311 - Cascading password with null
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:22:58,600 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:22:58,600 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:58,600 DEBUG Configuration:1211 - processing extends queue
  18:22:58,600 DEBUG Configuration:1215 - processing collection mappings
  18:22:58,600 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:22:58,600 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:22:58,600 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:22:58,600 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:22:58,600 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:22:58,600 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:22:58,600 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:22:58,600 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:58,600 DEBUG Configuration:1234 - processing association property references
  18:22:58,600 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:58,600 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:58,600 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:58,600 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:58,600  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:22:58,600  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:22:58,600  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:22:58,600  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:22:58,600  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:22:58,600  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:22:58,600 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:58,600 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:58,600 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:58,600  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:22:58,600  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:22:58,600  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:22:58,616 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:22:58,616 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:58,616  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:22:58,616  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:22:58,616  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:22:58,616  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:22:58,616  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:22:58,616 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:22:58,616  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:22:58,616  INFO SettingsFactory:204 - Connection release mode: auto
  18:22:58,616  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:22:58,616  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:22:58,616  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:22:58,616  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:22:58,616  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:22:58,616  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:22:58,616  INFO SettingsFactory:251 - Query language substitutions: {}
  18:22:58,616  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:22:58,616  INFO SettingsFactory:261 - Second-level cache: enabled
  18:22:58,616  INFO SettingsFactory:265 - Query cache: disabled
  18:22:58,616  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:22:58,616  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:22:58,616  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:22:58,616 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:22:58,616  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:22:58,616  INFO SettingsFactory:313 - Statistics: disabled
  18:22:58,616  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:22:58,616  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:22:58,616  INFO SettingsFactory:336 - Named query checking : enabled
  18:22:58,616  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:22:58,616  INFO SessionFactoryImpl:199 - building session factory
  18:22:58,616 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:22:58,616 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:22:58,616 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:22:58,616 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 65192 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-609134388\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:22:58,616 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,616 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,616 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,616 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,616 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:22:58,616 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,616 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,616 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:22:58,616 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:22:58,616 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title11_ from Category category_ where category_.id=?
  18:22:58,616 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:22:58,616 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:22:58,616 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:22:58,616 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,631 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:22:58,631 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:22:58,631 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message10_, advert_.title as title10_, advert_.aduser as aduser10_ from Advert advert_ where advert_.id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:22:58,631 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@379bd896], incoming type = [org.hibernate.type.IntegerType@379bd896]
  18:22:58,631 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:22:58,631 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:22:58,631 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_9_ from Message message_ where message_.id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:22:58,631 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@1f5a76f0], incoming type = [org.hibernate.type.StringType@1f5a76f0]
  18:22:58,631 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@73dc207c], incoming type = [org.hibernate.type.LongType@73dc207c]
  18:22:58,631 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:22:58,631 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:22:58,631 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name12_, user_.password as password12_ from AdUser user_ where user_.id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:22:58,631 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:22:58,631 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:22:58,631 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:22:58,631 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:22:58,631 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:22:58,631 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:22:58,631 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:22:58,631 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:22:58,631 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:22:58,631 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:22:58,631 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:22:58,631 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for read only with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,631 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for read only with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,647 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,647 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:22:58,647 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_11_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id10_0_, advert1_.message as message10_0_, advert1_.title as title10_0_, advert1_.aduser as aduser10_0_, user2_.id as id12_1_, user2_.name as name12_1_, user2_.password as password12_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:22:58,647 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_10_1_, categories0_.categories_id as categories1_1_, category1_.id as id11_0_, category1_.title as title11_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:22:58,647 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1035e9014a1035f2970001 (unnamed)
  18:22:58,647  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:22:58,647 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:22:58,647 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:58,647 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:58,647 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:58,647 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:58,647 DEBUG Configuration:1211 - processing extends queue
  18:22:58,647 DEBUG Configuration:1215 - processing collection mappings
  18:22:58,647 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:58,647 DEBUG Configuration:1234 - processing association property references
  18:22:58,647 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:22:58,647 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:22:58,647 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:22:58,647 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:22:58,647 DEBUG Configuration:1211 - processing extends queue
  18:22:58,647 DEBUG Configuration:1215 - processing collection mappings
  18:22:58,647 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:22:58,647 DEBUG Configuration:1234 - processing association property references
  18:22:58,647 DEBUG Configuration:1256 - processing foreign key constraints
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:22:58,647 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:22:58,647  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:22:58,647 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:22:58,647  INFO SchemaExport:251 - exporting generated schema to database
  18:22:58,647 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:58,647 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:58,647 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:58,647 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:22:58,662 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:22:58,709 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:22:58,725 DEBUG SchemaExport:377 - drop table AdUser
  18:22:58,740 DEBUG SchemaExport:377 - drop table Advert
  18:22:58,773 DEBUG SchemaExport:377 - drop table Category
  18:22:58,788 DEBUG SchemaExport:377 - drop table Message
  18:22:58,804 DEBUG SchemaExport:377 - drop table link_category_advert
  18:22:58,835 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:22:58,851 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:22:58,866 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:22:58,882 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:22:58,882 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:22:58,897 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:22:58,913 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:22:58,929 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:22:58,960  INFO SchemaExport:268 - schema export complete
  18:22:58,960 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:58,960 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:22:58,960 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:22:58,960 DEBUG SessionImpl:257 - opened session at timestamp: 14176111789
  18:22:58,960 DEBUG JDBCTransaction:82 - begin
  18:22:58,960 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:58,960 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:58,960 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:58,960 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:58,975 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:58,975 DEBUG JDBCContext:237 - after transaction begin
  18:22:58,975 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from User where name = :username)
  18:22:59,007 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.User where name = :username
  18:22:59,007 DEBUG HqlParser:88 - -> statement
  18:22:59,007 DEBUG HqlParser:88 - ---> selectStatement
  18:22:59,007 DEBUG HqlParser:88 - -----> queryRule
  18:22:59,007 DEBUG HqlParser:88 - -------> selectFrom
  18:22:59,007 DEBUG HqlParser:88 - ---------> fromClause
  18:22:59,007 DEBUG HqlParser:88 - -----------> fromRange
  18:22:59,007 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:22:59,007 DEBUG HqlParser:88 - ---------------> path
  18:22:59,007 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,007 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,007 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,007 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,007 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,007 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,007 DEBUG HqlParser:96 - <--------------- path
  18:22:59,007 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:22:59,007 DEBUG HqlParser:96 - <----------- fromRange
  18:22:59,007 DEBUG HqlParser:96 - <--------- fromClause
  18:22:59,007 DEBUG HqlParser:96 - <------- selectFrom
  18:22:59,007 DEBUG HqlParser:88 - -------> whereClause
  18:22:59,007 DEBUG HqlParser:88 - ---------> logicalExpression
  18:22:59,007 DEBUG HqlParser:88 - -----------> expression
  18:22:59,007 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:22:59,007 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:22:59,007 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:22:59,007 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:22:59,007 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:22:59,007 DEBUG HqlParser:88 - -----------------------> concatenation
  18:22:59,007 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:22:59,007 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:22:59,007 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:22:59,007 DEBUG HqlParser:88 - -------------------------------> atom
  18:22:59,007 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:22:59,007 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:22:59,007 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:22:59,007 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:22:59,007 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:22:59,007 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:22:59,007 DEBUG HqlParser:96 - <------------------------------- atom
  18:22:59,007 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:22:59,007 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:22:59,022 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:22:59,022 DEBUG HqlParser:96 - <----------------------- concatenation
  18:22:59,022 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:22:59,022 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:22:59,022 DEBUG HqlParser:88 - -----------------------> concatenation
  18:22:59,022 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:22:59,022 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:22:59,022 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:22:59,022 DEBUG HqlParser:88 - -------------------------------> atom
  18:22:59,022 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:22:59,022 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:22:59,022 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:22:59,022 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:22:59,022 DEBUG HqlParser:96 - <------------------------------- atom
  18:22:59,022 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:22:59,022 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:22:59,022 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:22:59,022 DEBUG HqlParser:96 - <----------------------- concatenation
  18:22:59,022 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:22:59,022 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:22:59,022 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:22:59,022 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:22:59,022 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:22:59,022 DEBUG HqlParser:96 - <----------- expression
  18:22:59,022 DEBUG HqlParser:96 - <--------- logicalExpression
  18:22:59,022 DEBUG HqlParser:96 - <------- whereClause
  18:22:59,022 DEBUG HqlParser:96 - <----- queryRule
  18:22:59,022 DEBUG HqlParser:96 - <--- selectStatement
  18:22:59,022 DEBUG HqlParser:96 - <- statement
  18:22:59,022 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'User'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'name'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'username'

  18:22:59,022 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,038 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:22:59,038 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:22:59,038 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:22:59,038 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:22:59,038 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:22:59,053 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,053 DEBUG HqlSqlWalker:200 - <----------------- path
  18:22:59,053 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:22:59,053 DEBUG HqlSqlWalker:200 - <--------------- path
  18:22:59,053 DEBUG HqlSqlWalker:186 - ---------------> identifier (User [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:22:59,053 DEBUG HqlSqlWalker:200 - <------------- path
  18:22:59,053 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.User (no alias) -> user0_
  18:22:59,053 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:22:59,053 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:22:59,053 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:22:59,053 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:22:59,053 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (name [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - ---------------> expr (name [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (name [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:186 - -------------------> identifier (name [IDENT])
  18:22:59,053 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,069 DEBUG HqlSqlWalker:578 - attempting to resolve property [name] as a non-qualified ref
  18:22:59,069 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:22:59,069 DEBUG FromElement:626 - handling property dereference [sample.entity.User (null) -> name (class)]
  18:22:59,069 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:22:59,069 DEBUG DotNode:613 - getDataType() : name -> org.hibernate.type.StringType@1f5a76f0
  18:22:59,069 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.name -> user0_.name
  18:22:59,069 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:22:59,069 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:22:59,069 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:22:59,069 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:22:59,069 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:22:59,069 DEBUG HqlSqlWalker:186 - -------------------> identifier (username [IDENT])
  18:22:59,069 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,069 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:22:59,069 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:22:59,069 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:22:59,069 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:22:59,069 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:22:59,069 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:22:59,069 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:22:59,069 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} AdUser user0_ ) ( where ( = ( user0_.name {synthetic-alias} name ) ? ) ) )
  18:22:59,069 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:22:59,069 DEBUG JoinProcessor:179 - Using FROM fragment [AdUser user0_]
  18:22:59,069 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:22:59,069 DEBUG HqlSqlWalker:200 - <----- query
  18:22:59,069 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:22:59,069 DEBUG HqlSqlWalker:200 - <- statement
  18:22:59,085 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (AdUser)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'user0_.id as id12_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}}
    |  \-[SQL_TOKEN] SqlFragment: 'user0_.name as name12_, user0_.password as password12_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[user0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'AdUser user0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'user0_.name' {propertyName=name,dereferenceType=ALL,propertyPath=name,path={synthetic-alias}.name,tableAlias=user0_,className=sample.entity.User,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'name' {originalText=name}
          \-[NAMED_PARAM] ParameterNode: '?' {name=username, expectedType=org.hibernate.type.StringType@1f5a76f0}

  18:22:59,085 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,085 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:22:59,085 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:22:59,085 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:22:59,085 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.id as id12_ [SELECT_EXPR])
  18:22:59,085 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.id as id12_ [SELECT_EXPR])
  18:22:59,085 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.id as id12_ [SELECT_EXPR])
  18:22:59,085 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:22:59,085 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <------- selectColumn
  18:22:59,085 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:22:59,085 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:22:59,085 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:22:59,085 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:22:59,085 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <------- selectColumn
  18:22:59,085 DEBUG SqlGenerator:104 - <----- selectClause
  18:22:59,085 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:22:59,085 DEBUG SqlGenerator:90 - -------> fromTable (AdUser user0_ [FROM_FRAGMENT])
  18:22:59,085 DEBUG SqlGenerator:104 - <------- fromTable
  18:22:59,085 DEBUG SqlGenerator:104 - <----- from
  18:22:59,085 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:22:59,085 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:22:59,085 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:22:59,085 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:22:59,085 DEBUG SqlGenerator:90 - -------------> expr (user0_.name [DOT])
  18:22:59,085 DEBUG SqlGenerator:90 - ---------------> simpleExpr (user0_.name [DOT])
  18:22:59,085 DEBUG SqlGenerator:90 - -----------------> addrExpr (user0_.name [DOT])
  18:22:59,085 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <------------- expr
  18:22:59,085 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:22:59,085 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:22:59,085 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:22:59,085 DEBUG SqlGenerator:104 - <----------------- parameter
  18:22:59,085 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <------------- expr
  18:22:59,085 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:22:59,085 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <----- whereExpr
  18:22:59,085 DEBUG SqlGenerator:104 - <--- selectStatement
  18:22:59,085 DEBUG SqlGenerator:104 - <- statement
  18:22:59,100 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.User where name = :username
  18:22:59,100 DEBUG QueryTranslatorImpl:242 - SQL: select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:22:59,100 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,100 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from User where name = :username)
  18:22:59,100 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:22:59,100 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:22:59,100 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:22:59,100 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,100 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:22:59,100 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,163 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:22:59,163 DEBUG Loader:1647 - Bound [2] parameters total
  18:22:59,178 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:22:59,178 DEBUG Loader:738 - processing result set
  18:22:59,178 DEBUG Loader:765 - done processing result set (0 rows)
  18:22:59,178 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:22:59,178 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,178 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,178 DEBUG Loader:895 - total objects hydrated: 0
  18:22:59,178 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:22:59,178 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from Category where title = :categoryTitle)
  18:22:59,178 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.Category where title = :categoryTitle
  18:22:59,178 DEBUG HqlParser:88 - -> statement
  18:22:59,178 DEBUG HqlParser:88 - ---> selectStatement
  18:22:59,178 DEBUG HqlParser:88 - -----> queryRule
  18:22:59,178 DEBUG HqlParser:88 - -------> selectFrom
  18:22:59,178 DEBUG HqlParser:88 - ---------> fromClause
  18:22:59,178 DEBUG HqlParser:88 - -----------> fromRange
  18:22:59,178 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:22:59,178 DEBUG HqlParser:88 - ---------------> path
  18:22:59,178 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,178 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,178 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,178 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,178 DEBUG HqlParser:88 - -----------------> identifier
  18:22:59,178 DEBUG HqlParser:96 - <----------------- identifier
  18:22:59,178 DEBUG HqlParser:96 - <--------------- path
  18:22:59,178 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:22:59,178 DEBUG HqlParser:96 - <----------- fromRange
  18:22:59,178 DEBUG HqlParser:96 - <--------- fromClause
  18:22:59,178 DEBUG HqlParser:96 - <------- selectFrom
  18:22:59,178 DEBUG HqlParser:88 - -------> whereClause
  18:22:59,178 DEBUG HqlParser:88 - ---------> logicalExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------> expression
  18:22:59,178 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:22:59,178 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:22:59,178 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:22:59,178 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------> concatenation
  18:22:59,178 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:22:59,178 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:22:59,178 DEBUG HqlParser:88 - -------------------------------> atom
  18:22:59,178 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:22:59,178 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:22:59,178 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:22:59,178 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:22:59,178 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:22:59,178 DEBUG HqlParser:96 - <------------------------------- atom
  18:22:59,178 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:22:59,178 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:22:59,178 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:22:59,178 DEBUG HqlParser:96 - <----------------------- concatenation
  18:22:59,178 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:22:59,178 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------> concatenation
  18:22:59,178 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:22:59,178 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:22:59,178 DEBUG HqlParser:88 - -------------------------------> atom
  18:22:59,178 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:22:59,178 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:22:59,178 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:22:59,194 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:22:59,194 DEBUG HqlParser:96 - <------------------------------- atom
  18:22:59,194 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:22:59,194 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:22:59,194 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:22:59,194 DEBUG HqlParser:96 - <----------------------- concatenation
  18:22:59,194 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:22:59,194 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:22:59,194 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:22:59,194 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:22:59,194 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:22:59,194 DEBUG HqlParser:96 - <----------- expression
  18:22:59,194 DEBUG HqlParser:96 - <--------- logicalExpression
  18:22:59,194 DEBUG HqlParser:96 - <------- whereClause
  18:22:59,194 DEBUG HqlParser:96 - <----- queryRule
  18:22:59,194 DEBUG HqlParser:96 - <--- selectStatement
  18:22:59,194 DEBUG HqlParser:96 - <- statement
  18:22:59,194 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'Category'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'title'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'categoryTitle'

  18:22:59,194 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,194 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:22:59,194 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:22:59,209 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------------- path
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------------- path
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------- path
  18:22:59,209 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (title [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------------> expr (title [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (title [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------------> identifier (title [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,209 DEBUG HqlSqlWalker:578 - attempting to resolve property [title] as a non-qualified ref
  18:22:59,209 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:22:59,209 DEBUG FromElement:626 - handling property dereference [sample.entity.Category (null) -> title (class)]
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:22:59,209 DEBUG DotNode:613 - getDataType() : title -> org.hibernate.type.StringType@1f5a76f0
  18:22:59,209 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.title -> category0_.title
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:22:59,209 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:22:59,209 DEBUG HqlSqlWalker:186 - -------------------> identifier (categoryTitle [IDENT])
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:22:59,209 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:22:59,209 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:22:59,209 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:22:59,209 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:22:59,209 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) ( where ( = ( category0_.title {synthetic-alias} title ) ? ) ) )
  18:22:59,225 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:22:59,225 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:22:59,225 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:22:59,225 DEBUG HqlSqlWalker:200 - <----- query
  18:22:59,225 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:22:59,225 DEBUG HqlSqlWalker:200 - <- statement
  18:22:59,225 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'category0_.title' {propertyName=title,dereferenceType=ALL,propertyPath=title,path={synthetic-alias}.title,tableAlias=category0_,className=sample.entity.Category,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'title' {originalText=title}
          \-[NAMED_PARAM] ParameterNode: '?' {name=categoryTitle, expectedType=org.hibernate.type.StringType@1f5a76f0}

  18:22:59,225 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,225 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:22:59,225 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:22:59,225 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:22:59,225 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:22:59,225 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:22:59,225 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:22:59,225 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:22:59,225 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <------- selectColumn
  18:22:59,225 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:22:59,225 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:22:59,225 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:22:59,225 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:22:59,225 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <------- selectColumn
  18:22:59,225 DEBUG SqlGenerator:104 - <----- selectClause
  18:22:59,225 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:22:59,225 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:22:59,225 DEBUG SqlGenerator:104 - <------- fromTable
  18:22:59,225 DEBUG SqlGenerator:104 - <----- from
  18:22:59,225 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:22:59,225 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:22:59,225 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:22:59,225 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:22:59,225 DEBUG SqlGenerator:90 - -------------> expr (category0_.title [DOT])
  18:22:59,225 DEBUG SqlGenerator:90 - ---------------> simpleExpr (category0_.title [DOT])
  18:22:59,225 DEBUG SqlGenerator:90 - -----------------> addrExpr (category0_.title [DOT])
  18:22:59,225 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <------------- expr
  18:22:59,225 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:22:59,225 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:22:59,225 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:22:59,225 DEBUG SqlGenerator:104 - <----------------- parameter
  18:22:59,225 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <------------- expr
  18:22:59,225 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:22:59,225 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <----- whereExpr
  18:22:59,225 DEBUG SqlGenerator:104 - <--- selectStatement
  18:22:59,225 DEBUG SqlGenerator:104 - <- statement
  18:22:59,225 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.Category where title = :categoryTitle
  18:22:59,225 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:22:59,225 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:22:59,225 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from Category where title = :categoryTitle)
  18:22:59,225 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:22:59,225 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:22:59,225 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:22:59,225 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,225 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:22:59,225 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,225 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:22:59,225 DEBUG Loader:1647 - Bound [2] parameters total
  18:22:59,225 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:22:59,225 DEBUG Loader:738 - processing result set
  18:22:59,225 DEBUG Loader:765 - done processing result set (0 rows)
  18:22:59,225 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:22:59,240 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,240 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,240 DEBUG Loader:895 - total objects hydrated: 0
  18:22:59,240 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:22:59,240 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,240 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:22:59,240 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,240 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:22:59,240 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,256 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:22:59,256 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,256 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:22:59,256 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,272 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:22:59,272 DEBUG StringType:153 - binding 'Must have original joysticks.' to parameter: 1
  18:22:59,272 DEBUG StringType:153 - binding 'Atari 2600 wanted' to parameter: 2
  18:22:59,272 DEBUG LongType:146 - binding null to parameter: 3
  18:22:59,272 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,272 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,272 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,272 DEBUG SQL:111 - values identity_val_local()
  18:22:59,272 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,287 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:22:59,287 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,287 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,287 DEBUG SessionImpl:310 - closing session
  18:22:59,287 DEBUG ConnectionManager:403 - performing cleanup
  18:22:59,287 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,287 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,287 DEBUG SessionImpl:257 - opened session at timestamp: 14176111792
  18:22:59,287 DEBUG JDBCTransaction:82 - begin
  18:22:59,287 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,287 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,287 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,287 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,287 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,287 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,303 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,303 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:22:59,303 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,303 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:22:59,303 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,303 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:22:59,303 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,303 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:22:59,303 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,303 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:22:59,303 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:22:59,303 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,303 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,303 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,303 DEBUG SQL:111 - values identity_val_local()
  18:22:59,303 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,303 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:22:59,303 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,303 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,303 DEBUG JDBCTransaction:134 - commit
  18:22:59,303 DEBUG SessionImpl:374 - automatically flushing session
  18:22:59,303 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:22:59,303 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:22:59,303 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:22:59,303 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:22:59,303 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [<unreferenced>] (initialized)
  18:22:59,303 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [<unreferenced>] (initialized)
  18:22:59,303 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:22:59,303 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:22:59,303 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 2 objects
  18:22:59,318 DEBUG AbstractFlushingEventListener:114 - Flushed: 2 (re)creations, 0 updates, 0 removals to 2 collections
  18:22:59,318 DEBUG Printer:106 - listing entities:
  18:22:59,318 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:22:59,318 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=null}
  18:22:59,318 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:22:59,318 DEBUG ConnectionManager:492 - registering flush begin
  18:22:59,318 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#1]
  18:22:59,318 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:22:59,318 DEBUG ConnectionManager:501 - registering flush end
  18:22:59,318 DEBUG AbstractFlushingEventListener:344 - post flush
  18:22:59,318 DEBUG JDBCContext:228 - before transaction completion
  18:22:59,318 DEBUG SessionImpl:562 - before transaction completion
  18:22:59,318 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:22:59,318 DEBUG JDBCContext:242 - after transaction completion
  18:22:59,318 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:22:59,318 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,318 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,318 DEBUG SessionImpl:592 - after transaction completion
  18:22:59,318 DEBUG JDBCTransaction:82 - begin
  18:22:59,318 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,318 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,318 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,318 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,318 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,318 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,318 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,318 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:22:59,318 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,318 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:22:59,318 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,318 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:22:59,318 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,318 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:22:59,318 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,318 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:22:59,318 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:22:59,318 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,318 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,318 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,318 DEBUG SQL:111 - values identity_val_local()
  18:22:59,318 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,318 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:22:59,318 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,318 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,318 DEBUG JDBCTransaction:134 - commit
  18:22:59,318 DEBUG SessionImpl:374 - automatically flushing session
  18:22:59,318 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:22:59,318 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:22:59,318 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:22:59,318 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:22:59,318 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:22:59,318 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:22:59,318 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [<unreferenced>] (initialized)
  18:22:59,318 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:22:59,318 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:22:59,318 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 3 objects
  18:22:59,318 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 3 collections
  18:22:59,318 DEBUG Printer:106 - listing entities:
  18:22:59,318 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:22:59,318 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=null}
  18:22:59,318 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:22:59,318 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:22:59,318 DEBUG ConnectionManager:492 - registering flush begin
  18:22:59,318 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#2]
  18:22:59,318 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:22:59,318 DEBUG ConnectionManager:501 - registering flush end
  18:22:59,318 DEBUG AbstractFlushingEventListener:344 - post flush
  18:22:59,318 DEBUG JDBCContext:228 - before transaction completion
  18:22:59,318 DEBUG SessionImpl:562 - before transaction completion
  18:22:59,334 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:22:59,334 DEBUG JDBCContext:242 - after transaction completion
  18:22:59,334 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:22:59,334 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,334 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,334 DEBUG SessionImpl:592 - after transaction completion
  18:22:59,334 DEBUG SessionImpl:310 - closing session
  18:22:59,334 DEBUG ConnectionManager:403 - performing cleanup
  18:22:59,334 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,334 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,334 DEBUG SessionImpl:257 - opened session at timestamp: 14176111793
  18:22:59,334 DEBUG JDBCTransaction:82 - begin
  18:22:59,334 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,334 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,334 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,334 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,334 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,334 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,334 DEBUG JDBCTransaction:82 - begin
  18:22:59,334 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,334 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,334 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,334 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,334 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,334 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,334 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,334 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:22:59,334 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,334 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,334 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:22:59,334 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,334 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:22:59,334 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,334 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:22:59,334 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:22:59,334 DEBUG StringType:153 - binding 'jammy' to parameter: 2
  18:22:59,334 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,334 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,334 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,334 DEBUG SQL:111 - values identity_val_local()
  18:22:59,334 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,350 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:22:59,350 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,350 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,350 DEBUG JDBCTransaction:134 - commit
  18:22:59,350 DEBUG SessionImpl:374 - automatically flushing session
  18:22:59,350 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:22:59,350 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:22:59,350 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:22:59,350 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:22:59,350 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:22:59,350 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:22:59,350 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 4 objects
  18:22:59,350 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:22:59,350 DEBUG Printer:106 - listing entities:
  18:22:59,350 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=null}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:22:59,350 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:22:59,350 DEBUG ConnectionManager:492 - registering flush begin
  18:22:59,350 DEBUG ConnectionManager:501 - registering flush end
  18:22:59,350 DEBUG AbstractFlushingEventListener:344 - post flush
  18:22:59,350 DEBUG JDBCContext:228 - before transaction completion
  18:22:59,350 DEBUG SessionImpl:562 - before transaction completion
  18:22:59,350 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:22:59,350 DEBUG JDBCContext:242 - after transaction completion
  18:22:59,350 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:22:59,350 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,350 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,350 DEBUG SessionImpl:592 - after transaction completion
  18:22:59,350 DEBUG JDBCTransaction:82 - begin
  18:22:59,350 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,350 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,350 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,350 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,350 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,350 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,350 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,350 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:22:59,350 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,350 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,350 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:22:59,350 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,350 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:22:59,350 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,350 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:22:59,350 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:22:59,350 DEBUG StringType:153 - binding 'dodgy' to parameter: 2
  18:22:59,350 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,350 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,350 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,350 DEBUG SQL:111 - values identity_val_local()
  18:22:59,350 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,350 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:22:59,350 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,350 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,350 DEBUG JDBCTransaction:134 - commit
  18:22:59,350 DEBUG SessionImpl:374 - automatically flushing session
  18:22:59,350 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:22:59,350 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:22:59,350 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:22:59,350 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:22:59,350 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:22:59,350 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:22:59,350 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:22:59,350 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:22:59,350 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:22:59,350 DEBUG Printer:106 - listing entities:
  18:22:59,350 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:22:59,350 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=null}
  18:22:59,350 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:22:59,350 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:22:59,350 DEBUG ConnectionManager:492 - registering flush begin
  18:22:59,350 DEBUG ConnectionManager:501 - registering flush end
  18:22:59,350 DEBUG AbstractFlushingEventListener:344 - post flush
  18:22:59,350 DEBUG JDBCContext:228 - before transaction completion
  18:22:59,350 DEBUG SessionImpl:562 - before transaction completion
  18:22:59,350 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:22:59,350 DEBUG JDBCContext:242 - after transaction completion
  18:22:59,365 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:22:59,365 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,365 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,365 DEBUG SessionImpl:592 - after transaction completion
  18:22:59,365 DEBUG JDBCTransaction:82 - begin
  18:22:59,365 DEBUG ConnectionManager:444 - opening JDBC connection
  18:22:59,365 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:22:59,365 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:22:59,365 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:22:59,365 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:22:59,365 DEBUG JDBCContext:237 - after transaction begin
  18:22:59,365 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:22:59,365 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:22:59,365 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:22:59,365 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:22:59,365 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:22:59,365 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,365 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:22:59,365 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,365 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:22:59,365 DEBUG StringType:153 - binding 'Jeya' to parameter: 1
  18:22:59,365 DEBUG StringType:153 - binding 'Keerthi' to parameter: 2
  18:22:59,365 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,365 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,365 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:22:59,365 DEBUG SQL:111 - values identity_val_local()
  18:22:59,365 DEBUG AbstractBatcher:513 - preparing statement
  18:22:59,365 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:22:59,365 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:22:59,365 DEBUG AbstractBatcher:562 - closing statement
  18:22:59,365 DEBUG JDBCTransaction:134 - commit
  18:22:59,365 DEBUG SessionImpl:374 - automatically flushing session
  18:22:59,365 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:22:59,365 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:22:59,365 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:22:59,365 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:22:59,365 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:22:59,365 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:22:59,365 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:22:59,365 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:22:59,365 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:22:59,365 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:22:59,365 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:22:59,365 DEBUG Printer:106 - listing entities:
  18:22:59,365 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:22:59,365 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:22:59,365 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:22:59,365 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:22:59,365 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=null}
  18:22:59,365 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:22:59,365 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:22:59,365 DEBUG ConnectionManager:492 - registering flush begin
  18:22:59,365 DEBUG ConnectionManager:501 - registering flush end
  18:22:59,365 DEBUG AbstractFlushingEventListener:344 - post flush
  18:22:59,365 DEBUG JDBCContext:228 - before transaction completion
  18:22:59,365 DEBUG SessionImpl:562 - before transaction completion
  18:22:59,365 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:22:59,365 DEBUG JDBCContext:242 - after transaction completion
  18:22:59,365 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:22:59,365 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,365 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,365 DEBUG SessionImpl:592 - after transaction completion
  18:22:59,365 DEBUG SessionImpl:310 - closing session
  18:22:59,365 DEBUG ConnectionManager:403 - performing cleanup
  18:22:59,365 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:22:59,365 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:22:59,365  INFO SessionFactoryImpl:938 - closing
  18:22:59,365  INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:derby:firstdb
  18:26:35,699  INFO Version:43 - Hibernate Annotations 3.5.3-Final
  18:26:35,712  INFO Environment:570 - Hibernate 3.5.3-Final
  18:26:35,714  INFO Environment:603 - hibernate.properties not found
  18:26:35,719  INFO Environment:781 - Bytecode provider name : javassist
  18:26:35,722  INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
  18:26:35,774 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:26:35,777 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:26:35,779 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:26:35,779 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:26:35,782 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:26:35,782 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:26:35,784 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:26:35,784 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:26:35,784 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:26:35,787 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:26:35,787 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:26:35,787 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:26:35,789 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:26:35,792 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:26:35,799  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
  18:26:35,804  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:26:35,804  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:26:35,829 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:26:35,832 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:26:35,832 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:26:35,832 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:26:35,862 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:26:35,862 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:26:35,864 DEBUG Configuration:1479 - hibernate.connection.username=
  18:26:35,864 DEBUG Configuration:1479 - hibernate.connection.password=
  18:26:35,864 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:26:35,864 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:26:35,864 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:26:35,867 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:26:35,867 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@1aa610e [Attribute: name class value "sample.entity.Message"]
  18:26:35,875 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@1f85555c [Attribute: name class value "sample.entity.Advert"]
  18:26:35,878 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@64e79f63 [Attribute: name class value "sample.entity.Category"]
  18:26:35,878 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@7157426 [Attribute: name class value "sample.entity.User"]
  18:26:35,880  INFO Configuration:1633 - Configured SessionFactory: null
  18:26:35,880 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50227 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse--1579041521\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:26:35,880 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:26:35,885 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:26:35,885  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:26:35,885 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:26:35,885 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:35,918 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:35,918 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:35,923  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:26:35,938 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:35,940 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:35,953 DEBUG EntityBinder:338 - Import with entity name Message
  18:26:35,955  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:26:35,975 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:26:35,980 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:35,983 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:35,985 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:35,988 DEBUG PropertyBinder:254 - Building property id
  18:26:35,990 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:35,990 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:35,990 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:26:35,993 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:26:35,993 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:26:35,993 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:26:35,995 DEBUG PropertyBinder:254 - Building property messageText
  18:26:35,995 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:26:35,998  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:26:35,998 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:35,998 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:35,998 DEBUG EntityBinder:338 - Import with entity name Advert
  18:26:36,000  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:26:36,008 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:26:36,008 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:36,010 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:36,010 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:36,010 DEBUG PropertyBinder:254 - Building property id
  18:26:36,010 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:36,010 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:36,013 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:26:36,013 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:26:36,030 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:26:36,030 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:26:36,035 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:26:36,035 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:26:36,035 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:26:36,038 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:26:36,040 DEBUG PropertyBinder:254 - Building property categories
  18:26:36,040 DEBUG PropertyBinder:311 - Cascading categories with none
  18:26:36,040 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:26:36,040 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:26:36,040 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:26:36,043 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:26:36,043 DEBUG PropertyBinder:254 - Building property message
  18:26:36,050 DEBUG PropertyBinder:311 - Cascading message with null
  18:26:36,050 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:26:36,050 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:26:36,050 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:26:36,050 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:26:36,053 DEBUG PropertyBinder:254 - Building property title
  18:26:36,053 DEBUG PropertyBinder:311 - Cascading title with null
  18:26:36,053 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:26:36,053 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:26:36,053 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:26:36,058 DEBUG PropertyBinder:254 - Building property user
  18:26:36,058 DEBUG PropertyBinder:311 - Cascading user with none
  18:26:36,058  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:26:36,058 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:36,058 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:36,060 DEBUG EntityBinder:338 - Import with entity name Category
  18:26:36,060  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:26:36,068 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:26:36,068 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:36,068 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:36,068 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:36,070 DEBUG PropertyBinder:254 - Building property id
  18:26:36,070 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:36,070 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:36,070 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:26:36,070 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:26:36,070 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:26:36,070 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:26:36,070 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:26:36,070 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:26:36,073 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:26:36,073 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:26:36,073 DEBUG PropertyBinder:254 - Building property adverts
  18:26:36,073 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:26:36,073 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:26:36,073 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:26:36,073 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:26:36,073 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:26:36,073 DEBUG PropertyBinder:254 - Building property title
  18:26:36,075 DEBUG PropertyBinder:311 - Cascading title with null
  18:26:36,075  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:26:36,075 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:36,075 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:36,075 DEBUG EntityBinder:338 - Import with entity name User
  18:26:36,075  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:26:36,078 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:26:36,078 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:36,078 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:36,078 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:36,078 DEBUG PropertyBinder:254 - Building property id
  18:26:36,078 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:36,078 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:36,078 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:26:36,080 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:26:36,080 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:26:36,080 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:26:36,080 DEBUG PropertyBinder:254 - Building property name
  18:26:36,080 DEBUG PropertyBinder:311 - Cascading name with null
  18:26:36,080 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:26:36,080 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:26:36,080 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:26:36,080 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:26:36,080 DEBUG PropertyBinder:254 - Building property password
  18:26:36,083 DEBUG PropertyBinder:311 - Cascading password with null
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:36,083 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:26:36,085 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:36,085 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:26:36,085 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:26:36,085 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:36,130 DEBUG Configuration:1211 - processing extends queue
  18:26:36,130 DEBUG Configuration:1215 - processing collection mappings
  18:26:36,130 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:26:36,130 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:26:36,133 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:26:36,135 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:26:36,135 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:26:36,135 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:26:36,138 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:26:36,138 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:36,138 DEBUG Configuration:1234 - processing association property references
  18:26:36,138 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:36,138 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:36,138 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:36,140 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:36,140  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:26:36,145  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:26:36,145  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:26:36,145  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:26:36,470  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:26:36,470  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:26:36,470 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:36,470 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:37,175 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:37,177  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:26:37,180  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:26:37,196  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:26:37,211 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:26:37,211 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:37,213  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:26:37,213  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:26:37,216  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:26:37,216  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:26:37,216  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:26:37,216 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:26:37,216  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:26:37,216  INFO SettingsFactory:204 - Connection release mode: auto
  18:26:37,218  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:26:37,218  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:26:37,218  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:26:37,218  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:26:37,218  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:26:37,218  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:26:37,221  INFO SettingsFactory:251 - Query language substitutions: {}
  18:26:37,221  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:26:37,221  INFO SettingsFactory:261 - Second-level cache: enabled
  18:26:37,221  INFO SettingsFactory:265 - Query cache: disabled
  18:26:37,221  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:26:37,221  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:26:37,223  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:26:37,223 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:26:37,228  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:26:37,228  INFO SettingsFactory:313 - Statistics: disabled
  18:26:37,231  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:26:37,231  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:26:37,231  INFO SettingsFactory:336 - Named query checking : enabled
  18:26:37,231  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:26:37,268  INFO SessionFactoryImpl:199 - building session factory
  18:26:37,273 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:26:37,273 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:26:37,276 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:26:37,276 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50227 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse--1579041521\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:26:37,276 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,278 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,278 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,278 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,398 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:26:37,398 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,398 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,403 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:26:37,403 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:26:37,403 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title2_ from Category category_ where category_.id=?
  18:26:37,403 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:26:37,403 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:26:37,403 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:26:37,403 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,408 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,408 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:26:37,411 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:26:37,411 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message1_, advert_.title as title1_, advert_.aduser as aduser1_ from Advert advert_ where advert_.id=?
  18:26:37,411 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:26:37,411 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:26:37,411 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:26:37,411 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:37,413 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,413 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@7e7454cc], incoming type = [org.hibernate.type.IntegerType@7e7454cc]
  18:26:37,413 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:26:37,413 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:26:37,413 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_0_ from Message message_ where message_.id=?
  18:26:37,413 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:26:37,413 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:26:37,413 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:26:37,413 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:26:37,418 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,418 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:37,418 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:37,418 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:26:37,418 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:26:37,418 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name3_, user_.password as password3_ from AdUser user_ where user_.id=?
  18:26:37,418 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:26:37,421 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:26:37,421 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:26:37,421 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:26:37,426 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:26:37,426 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:37,426 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:26:37,426 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:26:37,426 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:26:37,426 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:26:37,426 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:26:37,426 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:26:37,428 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:26:37,428 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:26:37,446 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,446 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,446 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for read only with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:37,448 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,451 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,456 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,458 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:26:37,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:37,463 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:37,463 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:37,463 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:37,463 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:26:37,463 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for read only with rs
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:37,466 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,468 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,468 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:26:37,468 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:37,471 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:37,471 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,471 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,471 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,471 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:26:37,476 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_2_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id1_0_, advert1_.message as message1_0_, advert1_.title as title1_0_, advert1_.aduser as aduser1_0_, user2_.id as id3_1_, user2_.name as name3_1_, user2_.password as password3_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:26:37,476 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_1_1_, categories0_.categories_id as categories1_1_, category1_.id as id2_0_, category1_.title as title2_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:26:37,478 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
  18:26:37,478 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a103942014a103949640000 (unnamed)
  18:26:37,478  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:26:37,478 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:26:37,481 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:37,481 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:37,483 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:37,483 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:37,483 DEBUG Configuration:1211 - processing extends queue
  18:26:37,483 DEBUG Configuration:1215 - processing collection mappings
  18:26:37,483 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:37,483 DEBUG Configuration:1234 - processing association property references
  18:26:37,483 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:37,483 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:37,483 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:37,483 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:37,483 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,486 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,486 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,486 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,486 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:37,486 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:37,486 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:37,486 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:37,486 DEBUG Configuration:1211 - processing extends queue
  18:26:37,486 DEBUG Configuration:1215 - processing collection mappings
  18:26:37,486 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:37,486 DEBUG Configuration:1234 - processing association property references
  18:26:37,486 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:37,486 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:37,486 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:37,486 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,488 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,491 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:37,491  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:26:37,493 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:26:37,493  INFO SchemaExport:251 - exporting generated schema to database
  18:26:37,493 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:37,493 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:37,493 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:37,498 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:26:37,683 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:26:37,706 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:26:37,731 DEBUG SchemaExport:377 - drop table AdUser
  18:26:37,761 DEBUG SchemaExport:377 - drop table Advert
  18:26:37,788 DEBUG SchemaExport:377 - drop table Category
  18:26:37,811 DEBUG SchemaExport:377 - drop table Message
  18:26:37,833 DEBUG SchemaExport:377 - drop table link_category_advert
  18:26:37,851 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:26:37,908 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:26:37,921 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:26:37,933 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:26:37,948 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:26:37,961 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:26:37,998 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:26:38,016 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:26:38,048  INFO SchemaExport:268 - schema export complete
  18:26:38,048 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,051 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:26:38,051 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:26:38,081 DEBUG SessionImpl:257 - opened session at timestamp: 14176113980
  18:26:38,083 DEBUG JDBCTransaction:82 - begin
  18:26:38,083 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,083 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,083 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,086 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,086 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,086 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:26:38,093 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:26:38,096 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:26:38,096 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:26:38,096 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:26:38,096 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:26:38,096 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:26:38,096  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:26:38,096  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:26:38,098 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:26:38,098 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:26:38,098 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:26:38,101 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:26:38,103 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:26:38,106 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:26:38,106 DEBUG Configuration:1479 - hibernate.connection.username=
  18:26:38,106 DEBUG Configuration:1479 - hibernate.connection.password=
  18:26:38,106 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:26:38,106 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:26:38,106 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:26:38,106 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:26:38,106 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@2634b3f1 [Attribute: name class value "sample.entity.Message"]
  18:26:38,106 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@68de8813 [Attribute: name class value "sample.entity.Advert"]
  18:26:38,106 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@21ffbd3b [Attribute: name class value "sample.entity.Category"]
  18:26:38,106 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@566b616a [Attribute: name class value "sample.entity.User"]
  18:26:38,106  INFO Configuration:1633 - Configured SessionFactory: null
  18:26:38,106 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50227 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse--1579041521\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:26:38,108 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:26:38,108 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:26:38,108  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:26:38,108 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:26:38,108 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:38,108 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:38,108 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:38,108  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:26:38,108 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:38,108 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:38,108 DEBUG EntityBinder:338 - Import with entity name Message
  18:26:38,111  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:26:38,111 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:26:38,111 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:38,111 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:38,111 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:38,111 DEBUG PropertyBinder:254 - Building property id
  18:26:38,111 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:38,111 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:38,111 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:26:38,111 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:26:38,111 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:26:38,113 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:26:38,113 DEBUG PropertyBinder:254 - Building property messageText
  18:26:38,113 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:26:38,113  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:26:38,113 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:38,113 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:38,113 DEBUG EntityBinder:338 - Import with entity name Advert
  18:26:38,113  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:26:38,116 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:26:38,116 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:38,116 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:38,116 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:38,118 DEBUG PropertyBinder:254 - Building property id
  18:26:38,118 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:38,118 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:38,118 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:26:38,118 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:26:38,121 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:26:38,121 DEBUG PropertyBinder:254 - Building property categories
  18:26:38,121 DEBUG PropertyBinder:311 - Cascading categories with none
  18:26:38,121 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:26:38,121 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:26:38,121 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:26:38,121 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:26:38,121 DEBUG PropertyBinder:254 - Building property message
  18:26:38,121 DEBUG PropertyBinder:311 - Cascading message with null
  18:26:38,121 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:26:38,121 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:26:38,121 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:26:38,121 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:26:38,121 DEBUG PropertyBinder:254 - Building property title
  18:26:38,121 DEBUG PropertyBinder:311 - Cascading title with null
  18:26:38,123 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:26:38,123 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:26:38,123 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:26:38,123 DEBUG PropertyBinder:254 - Building property user
  18:26:38,123 DEBUG PropertyBinder:311 - Cascading user with none
  18:26:38,123  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:26:38,123 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:38,123 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:38,123 DEBUG EntityBinder:338 - Import with entity name Category
  18:26:38,123  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:26:38,126 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:38,126 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:38,126 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:38,126 DEBUG PropertyBinder:254 - Building property id
  18:26:38,126 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:38,126 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:38,126 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:26:38,126 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:26:38,128 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:26:38,128 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:26:38,128 DEBUG PropertyBinder:254 - Building property adverts
  18:26:38,128 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:26:38,128 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:26:38,128 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:26:38,128 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:26:38,128 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:26:38,128 DEBUG PropertyBinder:254 - Building property title
  18:26:38,128 DEBUG PropertyBinder:311 - Cascading title with null
  18:26:38,128  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:26:38,128 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:26:38,128 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:26:38,131 DEBUG EntityBinder:338 - Import with entity name User
  18:26:38,131  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:26:38,131 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:26:38,131 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:26:38,131 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:26:38,131 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:26:38,131 DEBUG PropertyBinder:254 - Building property id
  18:26:38,131 DEBUG PropertyBinder:311 - Cascading id with null
  18:26:38,131 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:26:38,131 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:26:38,131 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:26:38,131 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:26:38,133 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:26:38,133 DEBUG PropertyBinder:254 - Building property name
  18:26:38,133 DEBUG PropertyBinder:311 - Cascading name with null
  18:26:38,133 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:26:38,133 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:26:38,133 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:26:38,133 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:26:38,133 DEBUG PropertyBinder:254 - Building property password
  18:26:38,133 DEBUG PropertyBinder:311 - Cascading password with null
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:38,133 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:26:38,136 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:26:38,136 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:26:38,136 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:26:38,136 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:38,136 DEBUG Configuration:1211 - processing extends queue
  18:26:38,136 DEBUG Configuration:1215 - processing collection mappings
  18:26:38,136 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:26:38,136 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:26:38,136 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:26:38,136 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:26:38,136 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:26:38,136 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:26:38,136 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:26:38,136 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:38,136 DEBUG Configuration:1234 - processing association property references
  18:26:38,138 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:38,138 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:38,138 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:38,138 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:38,138  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:26:38,138  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:26:38,138  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:26:38,138  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:26:38,138  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:26:38,138  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:26:38,138 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,141 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,141 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,141  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:26:38,141  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:26:38,141  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:26:38,146 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:26:38,146 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,148  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:26:38,148  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:26:38,148  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:26:38,148  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:26:38,148  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:26:38,148 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:26:38,148  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:26:38,148  INFO SettingsFactory:204 - Connection release mode: auto
  18:26:38,151  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:26:38,151  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:26:38,151  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:26:38,151  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:26:38,151  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:26:38,151  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:26:38,151  INFO SettingsFactory:251 - Query language substitutions: {}
  18:26:38,151  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:26:38,151  INFO SettingsFactory:261 - Second-level cache: enabled
  18:26:38,151  INFO SettingsFactory:265 - Query cache: disabled
  18:26:38,153  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:26:38,153  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:26:38,153  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:26:38,153 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:26:38,153  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:26:38,153  INFO SettingsFactory:313 - Statistics: disabled
  18:26:38,153  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:26:38,153  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:26:38,156  INFO SettingsFactory:336 - Named query checking : enabled
  18:26:38,156  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:26:38,161  INFO SessionFactoryImpl:199 - building session factory
  18:26:38,161 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:26:38,161 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:26:38,161 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:26:38,161 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50227 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse--1579041521\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:26:38,163 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,163 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,163 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,163 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,163 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:26:38,163 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,163 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,166 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:26:38,166 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:26:38,166 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title11_ from Category category_ where category_.id=?
  18:26:38,166 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:26:38,166 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:26:38,166 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:26:38,166 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:26:38,166 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,168 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,168 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:26:38,168 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:26:38,168 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message10_, advert_.title as title10_, advert_.aduser as aduser10_ from Advert advert_ where advert_.id=?
  18:26:38,168 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:26:38,168 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:26:38,168 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:26:38,168 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:38,171 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,171 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@7e7454cc], incoming type = [org.hibernate.type.IntegerType@7e7454cc]
  18:26:38,171 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:26:38,171 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:26:38,171 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_9_ from Message message_ where message_.id=?
  18:26:38,171 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:26:38,171 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:26:38,171 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:26:38,171 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:26:38,173 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,173 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@14d0093a], incoming type = [org.hibernate.type.StringType@14d0093a]
  18:26:38,173 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@1328aa26], incoming type = [org.hibernate.type.LongType@1328aa26]
  18:26:38,173 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:26:38,173 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:26:38,173 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name12_, user_.password as password12_ from AdUser user_ where user_.id=?
  18:26:38,173 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:26:38,173 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:26:38,176 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:26:38,176 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:26:38,176 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:26:38,176 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:38,176 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:26:38,176 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:26:38,176 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:26:38,176 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:26:38,176 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:26:38,176 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:26:38,176 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:26:38,176 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:26:38,176 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,176 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for read only with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,178 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,178 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,178 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:26:38,179 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:38,179 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:38,179 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:38,179 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:38,179 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:38,182 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:26:38,182 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:38,184 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:26:38,184 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:38,184 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:26:38,184 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:26:38,184 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:26:38,184 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for read only with rs
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:38,187 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:26:38,189 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,189 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,189 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,189 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:26:38,189 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,189 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,192 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:38,192 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:38,192 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:38,192 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:26:38,192 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:38,194 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:26:38,194 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,194 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,194 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,194 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:26:38,194 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_11_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id10_0_, advert1_.message as message10_0_, advert1_.title as title10_0_, advert1_.aduser as aduser10_0_, user2_.id as id12_1_, user2_.name as name12_1_, user2_.password as password12_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:26:38,197 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_10_1_, categories0_.categories_id as categories1_1_, category1_.id as id11_0_, category1_.title as title11_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:26:38,197 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a103942014a10394c350001 (unnamed)
  18:26:38,197  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:26:38,197 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:26:38,197 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:38,197 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:38,197 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:38,197 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:38,197 DEBUG Configuration:1211 - processing extends queue
  18:26:38,197 DEBUG Configuration:1215 - processing collection mappings
  18:26:38,197 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:38,197 DEBUG Configuration:1234 - processing association property references
  18:26:38,197 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:38,197 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:38,197 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:38,197 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:38,199 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,199 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,199 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,199 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,199 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:26:38,199 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:26:38,199 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:26:38,199 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:26:38,199 DEBUG Configuration:1211 - processing extends queue
  18:26:38,199 DEBUG Configuration:1215 - processing collection mappings
  18:26:38,199 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:26:38,199 DEBUG Configuration:1234 - processing association property references
  18:26:38,199 DEBUG Configuration:1256 - processing foreign key constraints
  18:26:38,199 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:26:38,202 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:26:38,202 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:26:38,202  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:26:38,204 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:26:38,204  INFO SchemaExport:251 - exporting generated schema to database
  18:26:38,204 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,204 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,204 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,204 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:26:38,222 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:26:38,247 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:26:38,264 DEBUG SchemaExport:377 - drop table AdUser
  18:26:38,282 DEBUG SchemaExport:377 - drop table Advert
  18:26:38,302 DEBUG SchemaExport:377 - drop table Category
  18:26:38,317 DEBUG SchemaExport:377 - drop table Message
  18:26:38,342 DEBUG SchemaExport:377 - drop table link_category_advert
  18:26:38,369 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:26:38,384 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:26:38,404 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:26:38,417 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:26:38,427 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:26:38,444 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:26:38,464 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:26:38,484 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:26:38,504  INFO SchemaExport:268 - schema export complete
  18:26:38,504 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,504 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:26:38,504 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:26:38,504 DEBUG SessionImpl:257 - opened session at timestamp: 14176113985
  18:26:38,504 DEBUG JDBCTransaction:82 - begin
  18:26:38,507 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,507 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,507 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,509 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,509 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,509 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,512 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,514 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:26:38,514 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,527 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:26:38,529 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,529 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:26:38,532 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,532 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:26:38,532 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,587 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:26:38,587 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:26:38,594 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,594 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,594 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,594 DEBUG SQL:111 - values identity_val_local()
  18:26:38,594 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,609 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:26:38,609 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,609 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,612 DEBUG JDBCTransaction:134 - commit
  18:26:38,614 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,614 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,614 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,614 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,617 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,619 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [<unreferenced>] (initialized)
  18:26:38,619 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,619 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,619 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
  18:26:38,619 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
  18:26:38,622 DEBUG Printer:106 - listing entities:
  18:26:38,622 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,622 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:38,622 DEBUG ConnectionManager:492 - registering flush begin
  18:26:38,622 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#1]
  18:26:38,622 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:26:38,622 DEBUG ConnectionManager:501 - registering flush end
  18:26:38,622 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:38,624 DEBUG JDBCContext:228 - before transaction completion
  18:26:38,624 DEBUG SessionImpl:562 - before transaction completion
  18:26:38,624 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:38,624 DEBUG JDBCContext:242 - after transaction completion
  18:26:38,624 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:38,624 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,627 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,627 DEBUG SessionImpl:592 - after transaction completion
  18:26:38,627 DEBUG JDBCTransaction:82 - begin
  18:26:38,627 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,627 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,627 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,627 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,627 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,627 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,627 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,627 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:26:38,629 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,629 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:26:38,629 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,629 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:26:38,629 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,629 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:26:38,629 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,629 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:26:38,629 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:26:38,629 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,629 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,632 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,632 DEBUG SQL:111 - values identity_val_local()
  18:26:38,632 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,632 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:26:38,632 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,632 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,632 DEBUG JDBCTransaction:134 - commit
  18:26:38,632 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,632 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,632 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,632 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,632 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,632 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,632 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [<unreferenced>] (initialized)
  18:26:38,634 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,634 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,634 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 2 objects
  18:26:38,634 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,634 DEBUG Printer:106 - listing entities:
  18:26:38,634 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,634 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,634 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:38,634 DEBUG ConnectionManager:492 - registering flush begin
  18:26:38,634 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#2]
  18:26:38,634 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:26:38,634 DEBUG ConnectionManager:501 - registering flush end
  18:26:38,634 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:38,634 DEBUG JDBCContext:228 - before transaction completion
  18:26:38,634 DEBUG SessionImpl:562 - before transaction completion
  18:26:38,637 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:38,637 DEBUG JDBCContext:242 - after transaction completion
  18:26:38,637 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:38,637 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,637 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,637 DEBUG SessionImpl:592 - after transaction completion
  18:26:38,637 DEBUG SessionImpl:310 - closing session
  18:26:38,637 DEBUG ConnectionManager:403 - performing cleanup
  18:26:38,639 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,639 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,642 DEBUG SessionImpl:257 - opened session at timestamp: 14176113986
  18:26:38,642 DEBUG JDBCTransaction:82 - begin
  18:26:38,642 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,642 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,642 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,642 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,642 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,642 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,644 DEBUG JDBCTransaction:82 - begin
  18:26:38,644 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,647 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,647 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,647 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,647 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,647 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,647 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,647 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:26:38,647 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,649 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,649 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:26:38,649 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,649 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:26:38,649 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,654 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:26:38,654 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:26:38,654 DEBUG StringType:153 - binding 'jammy' to parameter: 2
  18:26:38,657 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,657 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,657 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,657 DEBUG SQL:111 - values identity_val_local()
  18:26:38,657 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,657 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:26:38,657 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,659 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,659 DEBUG JDBCTransaction:134 - commit
  18:26:38,659 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,659 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,659 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,659 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,659 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,659 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,659 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:38,659 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,659 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,659 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 3 objects
  18:26:38,662 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,662 DEBUG Printer:106 - listing entities:
  18:26:38,662 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:38,662 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,662 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,662 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:38,662 DEBUG ConnectionManager:492 - registering flush begin
  18:26:38,662 DEBUG ConnectionManager:501 - registering flush end
  18:26:38,662 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:38,662 DEBUG JDBCContext:228 - before transaction completion
  18:26:38,662 DEBUG SessionImpl:562 - before transaction completion
  18:26:38,662 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:38,664 DEBUG JDBCContext:242 - after transaction completion
  18:26:38,664 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:38,664 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,664 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,664 DEBUG SessionImpl:592 - after transaction completion
  18:26:38,664 DEBUG JDBCTransaction:82 - begin
  18:26:38,664 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,664 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,664 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,664 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,667 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,667 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,667 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,667 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:26:38,667 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,667 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,667 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:26:38,667 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,667 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:26:38,667 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,667 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:26:38,667 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:26:38,667 DEBUG StringType:153 - binding 'dodgy' to parameter: 2
  18:26:38,669 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,669 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,672 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,672 DEBUG SQL:111 - values identity_val_local()
  18:26:38,672 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,672 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:26:38,674 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,674 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,674 DEBUG JDBCTransaction:134 - commit
  18:26:38,674 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,674 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,677 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,677 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,677 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,677 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,677 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:38,677 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,677 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,677 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 4 objects
  18:26:38,677 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,679 DEBUG Printer:106 - listing entities:
  18:26:38,679 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:38,679 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:38,679 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,679 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,679 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:38,679 DEBUG ConnectionManager:492 - registering flush begin
  18:26:38,682 DEBUG ConnectionManager:501 - registering flush end
  18:26:38,682 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:38,682 DEBUG JDBCContext:228 - before transaction completion
  18:26:38,682 DEBUG SessionImpl:562 - before transaction completion
  18:26:38,682 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:38,684 DEBUG JDBCContext:242 - after transaction completion
  18:26:38,684 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:38,684 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,684 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,684 DEBUG SessionImpl:592 - after transaction completion
  18:26:38,684 DEBUG JDBCTransaction:82 - begin
  18:26:38,684 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,684 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,684 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,687 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,687 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,687 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,687 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,687 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:26:38,687 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,689 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,689 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:26:38,692 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,692 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:26:38,692 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,692 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:26:38,692 DEBUG StringType:153 - binding 'Jeya' to parameter: 1
  18:26:38,692 DEBUG StringType:153 - binding 'Keerthi' to parameter: 2
  18:26:38,694 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,694 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,694 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,694 DEBUG SQL:111 - values identity_val_local()
  18:26:38,694 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,697 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:26:38,697 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,697 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,697 DEBUG JDBCTransaction:134 - commit
  18:26:38,697 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,697 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,697 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,697 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,697 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,699 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,699 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:38,699 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,699 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,699 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:26:38,699 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,699 DEBUG Printer:106 - listing entities:
  18:26:38,699 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:38,699 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:38,699 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:38,702 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,702 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,702 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:38,702 DEBUG ConnectionManager:492 - registering flush begin
  18:26:38,702 DEBUG ConnectionManager:501 - registering flush end
  18:26:38,702 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:38,702 DEBUG JDBCContext:228 - before transaction completion
  18:26:38,702 DEBUG SessionImpl:562 - before transaction completion
  18:26:38,702 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:38,702 DEBUG JDBCContext:242 - after transaction completion
  18:26:38,702 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:38,704 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,704 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,704 DEBUG SessionImpl:592 - after transaction completion
  18:26:38,704 DEBUG SessionImpl:310 - closing session
  18:26:38,707 DEBUG ConnectionManager:403 - performing cleanup
  18:26:38,707 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:38,707 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:38,719 DEBUG SessionImpl:257 - opened session at timestamp: 14176113987
  18:26:38,719 DEBUG JDBCTransaction:82 - begin
  18:26:38,719 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,719 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,722 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,724 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,724 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,724 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,727 DEBUG JDBCTransaction:82 - begin
  18:26:38,727 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:38,727 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:38,727 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:38,729 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:38,729 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:38,729 DEBUG JDBCContext:237 - after transaction begin
  18:26:38,734 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from User where name = :username)
  18:26:38,777 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.User where name = :username
  18:26:38,779 DEBUG HqlParser:88 - -> statement
  18:26:38,779 DEBUG HqlParser:88 - ---> selectStatement
  18:26:38,779 DEBUG HqlParser:88 - -----> queryRule
  18:26:38,779 DEBUG HqlParser:88 - -------> selectFrom
  18:26:38,779 DEBUG HqlParser:88 - ---------> fromClause
  18:26:38,782 DEBUG HqlParser:88 - -----------> fromRange
  18:26:38,782 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:26:38,782 DEBUG HqlParser:88 - ---------------> path
  18:26:38,782 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,782 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,782 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,782 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,782 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,782 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,782 DEBUG HqlParser:96 - <--------------- path
  18:26:38,784 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:26:38,784 DEBUG HqlParser:96 - <----------- fromRange
  18:26:38,784 DEBUG HqlParser:96 - <--------- fromClause
  18:26:38,784 DEBUG HqlParser:96 - <------- selectFrom
  18:26:38,784 DEBUG HqlParser:88 - -------> whereClause
  18:26:38,784 DEBUG HqlParser:88 - ---------> logicalExpression
  18:26:38,784 DEBUG HqlParser:88 - -----------> expression
  18:26:38,784 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:26:38,784 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:26:38,784 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:26:38,784 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:26:38,784 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:26:38,784 DEBUG HqlParser:88 - -----------------------> concatenation
  18:26:38,784 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:26:38,787 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:26:38,787 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:26:38,787 DEBUG HqlParser:88 - -------------------------------> atom
  18:26:38,787 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:26:38,787 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:26:38,787 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:26:38,794 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:26:38,794 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:26:38,797 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:26:38,797 DEBUG HqlParser:96 - <------------------------------- atom
  18:26:38,797 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:26:38,797 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:26:38,797 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:26:38,797 DEBUG HqlParser:96 - <----------------------- concatenation
  18:26:38,797 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:26:38,797 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:26:38,797 DEBUG HqlParser:88 - -----------------------> concatenation
  18:26:38,797 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:26:38,797 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:26:38,797 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:26:38,797 DEBUG HqlParser:88 - -------------------------------> atom
  18:26:38,797 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:26:38,797 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:26:38,799 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:26:38,799 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:26:38,799 DEBUG HqlParser:96 - <------------------------------- atom
  18:26:38,799 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:26:38,799 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:26:38,799 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:26:38,799 DEBUG HqlParser:96 - <----------------------- concatenation
  18:26:38,799 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:26:38,799 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:26:38,799 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:26:38,799 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:26:38,799 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:26:38,799 DEBUG HqlParser:96 - <----------- expression
  18:26:38,802 DEBUG HqlParser:96 - <--------- logicalExpression
  18:26:38,802 DEBUG HqlParser:96 - <------- whereClause
  18:26:38,802 DEBUG HqlParser:96 - <----- queryRule
  18:26:38,802 DEBUG HqlParser:96 - <--- selectStatement
  18:26:38,802 DEBUG HqlParser:96 - <- statement
  18:26:38,804 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'User'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'name'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'username'

  18:26:38,804 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,824 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:26:38,824 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:26:38,824 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:26:38,827 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:26:38,827 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:26:38,829 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:26:38,829 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:26:38,829 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:26:38,834 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:26:38,834 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:26:38,834 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:26:38,834 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,834 DEBUG HqlSqlWalker:200 - <----------------- path
  18:26:38,834 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:26:38,834 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:26:38,834 DEBUG HqlSqlWalker:200 - <--------------- path
  18:26:38,834 DEBUG HqlSqlWalker:186 - ---------------> identifier (User [IDENT])
  18:26:38,834 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:26:38,834 DEBUG HqlSqlWalker:200 - <------------- path
  18:26:38,842 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.User (no alias) -> user0_
  18:26:38,842 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:26:38,842 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:26:38,842 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:26:38,842 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:26:38,842 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:26:38,842 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:26:38,844 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (name [IDENT])
  18:26:38,844 DEBUG HqlSqlWalker:186 - ---------------> expr (name [IDENT])
  18:26:38,844 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (name [IDENT])
  18:26:38,844 DEBUG HqlSqlWalker:186 - -------------------> identifier (name [IDENT])
  18:26:38,844 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,844 DEBUG HqlSqlWalker:578 - attempting to resolve property [name] as a non-qualified ref
  18:26:38,844 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:26:38,847 DEBUG FromElement:626 - handling property dereference [sample.entity.User (null) -> name (class)]
  18:26:38,847 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:26:38,847 DEBUG DotNode:613 - getDataType() : name -> org.hibernate.type.StringType@14d0093a
  18:26:38,847 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.name -> user0_.name
  18:26:38,847 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:26:38,847 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:26:38,847 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:26:38,847 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:26:38,847 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:26:38,849 DEBUG HqlSqlWalker:186 - -------------------> identifier (username [IDENT])
  18:26:38,849 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,849 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:26:38,849 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:26:38,849 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:26:38,852 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:26:38,852 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:26:38,852 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:26:38,852 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:26:38,852 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} AdUser user0_ ) ( where ( = ( user0_.name {synthetic-alias} name ) ? ) ) )
  18:26:38,857 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:26:38,862 DEBUG JoinProcessor:179 - Using FROM fragment [AdUser user0_]
  18:26:38,864 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:26:38,864 DEBUG HqlSqlWalker:200 - <----- query
  18:26:38,864 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:26:38,864 DEBUG HqlSqlWalker:200 - <- statement
  18:26:38,864 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (AdUser)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'user0_.id as id12_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}}
    |  \-[SQL_TOKEN] SqlFragment: 'user0_.name as name12_, user0_.password as password12_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[user0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'AdUser user0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'user0_.name' {propertyName=name,dereferenceType=ALL,propertyPath=name,path={synthetic-alias}.name,tableAlias=user0_,className=sample.entity.User,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'name' {originalText=name}
          \-[NAMED_PARAM] ParameterNode: '?' {name=username, expectedType=org.hibernate.type.StringType@14d0093a}

  18:26:38,864 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,879 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:26:38,879 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:26:38,879 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:26:38,879 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.id as id12_ [SELECT_EXPR])
  18:26:38,879 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.id as id12_ [SELECT_EXPR])
  18:26:38,879 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.id as id12_ [SELECT_EXPR])
  18:26:38,879 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:26:38,879 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:26:38,879 DEBUG SqlGenerator:104 - <------- selectColumn
  18:26:38,879 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:26:38,879 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:26:38,882 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:26:38,882 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:26:38,882 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:26:38,882 DEBUG SqlGenerator:104 - <------- selectColumn
  18:26:38,882 DEBUG SqlGenerator:104 - <----- selectClause
  18:26:38,882 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:26:38,882 DEBUG SqlGenerator:90 - -------> fromTable (AdUser user0_ [FROM_FRAGMENT])
  18:26:38,882 DEBUG SqlGenerator:104 - <------- fromTable
  18:26:38,882 DEBUG SqlGenerator:104 - <----- from
  18:26:38,882 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:26:38,882 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:26:38,882 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:26:38,882 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:26:38,882 DEBUG SqlGenerator:90 - -------------> expr (user0_.name [DOT])
  18:26:38,882 DEBUG SqlGenerator:90 - ---------------> simpleExpr (user0_.name [DOT])
  18:26:38,882 DEBUG SqlGenerator:90 - -----------------> addrExpr (user0_.name [DOT])
  18:26:38,884 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <------------- expr
  18:26:38,884 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:26:38,884 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:26:38,884 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:26:38,884 DEBUG SqlGenerator:104 - <----------------- parameter
  18:26:38,884 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <------------- expr
  18:26:38,884 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:26:38,884 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <----- whereExpr
  18:26:38,884 DEBUG SqlGenerator:104 - <--- selectStatement
  18:26:38,884 DEBUG SqlGenerator:104 - <- statement
  18:26:38,884 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.User where name = :username
  18:26:38,884 DEBUG QueryTranslatorImpl:242 - SQL: select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:26:38,887 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,889 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from User where name = :username)
  18:26:38,897 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:38,897 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,897 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,897 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,897 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,897 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,897 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:38,899 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,899 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,899 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:26:38,899 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,899 DEBUG Printer:106 - listing entities:
  18:26:38,899 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:38,899 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:38,899 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:38,899 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,899 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,899 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:38,899 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:26:38,899 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:26:38,902 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,902 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:26:38,902 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,919 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:26:38,919 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:38,922 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:38,922 DEBUG Loader:738 - processing result set
  18:26:38,922 DEBUG Loader:743 - result set row: 0
  18:26:38,922 DEBUG LongType:195 - returning '1' as column: id12_
  18:26:38,922 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:26:38,922 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:38,924 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:38,924 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,924 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,924 DEBUG Loader:895 - total objects hydrated: 0
  18:26:38,924 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:38,927 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from Category where title = :categoryTitle)
  18:26:38,927 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.Category where title = :categoryTitle
  18:26:38,927 DEBUG HqlParser:88 - -> statement
  18:26:38,927 DEBUG HqlParser:88 - ---> selectStatement
  18:26:38,927 DEBUG HqlParser:88 - -----> queryRule
  18:26:38,927 DEBUG HqlParser:88 - -------> selectFrom
  18:26:38,927 DEBUG HqlParser:88 - ---------> fromClause
  18:26:38,927 DEBUG HqlParser:88 - -----------> fromRange
  18:26:38,927 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:26:38,927 DEBUG HqlParser:88 - ---------------> path
  18:26:38,927 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,929 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,929 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,929 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,929 DEBUG HqlParser:88 - -----------------> identifier
  18:26:38,929 DEBUG HqlParser:96 - <----------------- identifier
  18:26:38,929 DEBUG HqlParser:96 - <--------------- path
  18:26:38,929 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:26:38,929 DEBUG HqlParser:96 - <----------- fromRange
  18:26:38,929 DEBUG HqlParser:96 - <--------- fromClause
  18:26:38,929 DEBUG HqlParser:96 - <------- selectFrom
  18:26:38,929 DEBUG HqlParser:88 - -------> whereClause
  18:26:38,929 DEBUG HqlParser:88 - ---------> logicalExpression
  18:26:38,932 DEBUG HqlParser:88 - -----------> expression
  18:26:38,932 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:26:38,932 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:26:38,932 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:26:38,932 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:26:38,932 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:26:38,932 DEBUG HqlParser:88 - -----------------------> concatenation
  18:26:38,932 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:26:38,932 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:26:38,932 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:26:38,932 DEBUG HqlParser:88 - -------------------------------> atom
  18:26:38,932 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:26:38,932 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:26:38,932 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:26:38,934 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:26:38,934 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:26:38,934 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:26:38,934 DEBUG HqlParser:96 - <------------------------------- atom
  18:26:38,934 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:26:38,934 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:26:38,934 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:26:38,934 DEBUG HqlParser:96 - <----------------------- concatenation
  18:26:38,934 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:26:38,934 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:26:38,934 DEBUG HqlParser:88 - -----------------------> concatenation
  18:26:38,937 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:26:38,937 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:26:38,937 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:26:38,937 DEBUG HqlParser:88 - -------------------------------> atom
  18:26:38,937 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:26:38,937 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:26:38,937 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:26:38,937 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:26:38,937 DEBUG HqlParser:96 - <------------------------------- atom
  18:26:38,937 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:26:38,937 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:26:38,937 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:26:38,937 DEBUG HqlParser:96 - <----------------------- concatenation
  18:26:38,937 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:26:38,937 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:26:38,939 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:26:38,939 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:26:38,939 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:26:38,939 DEBUG HqlParser:96 - <----------- expression
  18:26:38,939 DEBUG HqlParser:96 - <--------- logicalExpression
  18:26:38,939 DEBUG HqlParser:96 - <------- whereClause
  18:26:38,939 DEBUG HqlParser:96 - <----- queryRule
  18:26:38,939 DEBUG HqlParser:96 - <--- selectStatement
  18:26:38,939 DEBUG HqlParser:96 - <- statement
  18:26:38,939 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'Category'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'title'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'categoryTitle'

  18:26:38,939 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,942 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:26:38,942 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:26:38,942 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:26:38,942 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:26:38,942 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:26:38,942 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:26:38,942 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:26:38,942 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:26:38,942 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:26:38,942 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:26:38,942 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:26:38,942 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,942 DEBUG HqlSqlWalker:200 - <----------------- path
  18:26:38,942 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:26:38,942 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:26:38,944 DEBUG HqlSqlWalker:200 - <--------------- path
  18:26:38,944 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:26:38,944 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:26:38,944 DEBUG HqlSqlWalker:200 - <------------- path
  18:26:38,944 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:26:38,944 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:26:38,944 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:26:38,944 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:26:38,944 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:26:38,944 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:26:38,944 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:26:38,944 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (title [IDENT])
  18:26:38,944 DEBUG HqlSqlWalker:186 - ---------------> expr (title [IDENT])
  18:26:38,944 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (title [IDENT])
  18:26:38,944 DEBUG HqlSqlWalker:186 - -------------------> identifier (title [IDENT])
  18:26:38,944 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,947 DEBUG HqlSqlWalker:578 - attempting to resolve property [title] as a non-qualified ref
  18:26:38,947 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:26:38,947 DEBUG FromElement:626 - handling property dereference [sample.entity.Category (null) -> title (class)]
  18:26:38,947 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:26:38,947 DEBUG DotNode:613 - getDataType() : title -> org.hibernate.type.StringType@14d0093a
  18:26:38,947 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.title -> category0_.title
  18:26:38,947 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:26:38,947 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:26:38,947 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:26:38,947 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:26:38,947 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:26:38,947 DEBUG HqlSqlWalker:186 - -------------------> identifier (categoryTitle [IDENT])
  18:26:38,947 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:26:38,947 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:26:38,947 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:26:38,947 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:26:38,949 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:26:38,949 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:26:38,949 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:26:38,949 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:26:38,949 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) ( where ( = ( category0_.title {synthetic-alias} title ) ? ) ) )
  18:26:38,949 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:26:38,949 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:26:38,949 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:26:38,949 DEBUG HqlSqlWalker:200 - <----- query
  18:26:38,949 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:26:38,949 DEBUG HqlSqlWalker:200 - <- statement
  18:26:38,949 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'category0_.title' {propertyName=title,dereferenceType=ALL,propertyPath=title,path={synthetic-alias}.title,tableAlias=category0_,className=sample.entity.Category,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'title' {originalText=title}
          \-[NAMED_PARAM] ParameterNode: '?' {name=categoryTitle, expectedType=org.hibernate.type.StringType@14d0093a}

  18:26:38,952 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,952 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:26:38,952 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:26:38,952 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:26:38,952 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:26:38,952 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:26:38,952 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:26:38,952 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:26:38,952 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:26:38,952 DEBUG SqlGenerator:104 - <------- selectColumn
  18:26:38,952 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:26:38,952 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:26:38,952 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:26:38,952 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:26:38,952 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:26:38,952 DEBUG SqlGenerator:104 - <------- selectColumn
  18:26:38,954 DEBUG SqlGenerator:104 - <----- selectClause
  18:26:38,954 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:26:38,954 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:26:38,954 DEBUG SqlGenerator:104 - <------- fromTable
  18:26:38,954 DEBUG SqlGenerator:104 - <----- from
  18:26:38,954 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:26:38,954 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:26:38,954 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:26:38,954 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:26:38,954 DEBUG SqlGenerator:90 - -------------> expr (category0_.title [DOT])
  18:26:38,954 DEBUG SqlGenerator:90 - ---------------> simpleExpr (category0_.title [DOT])
  18:26:38,954 DEBUG SqlGenerator:90 - -----------------> addrExpr (category0_.title [DOT])
  18:26:38,954 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:26:38,954 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:26:38,954 DEBUG SqlGenerator:104 - <------------- expr
  18:26:38,957 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:26:38,957 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:26:38,957 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:26:38,957 DEBUG SqlGenerator:104 - <----------------- parameter
  18:26:38,957 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:26:38,957 DEBUG SqlGenerator:104 - <------------- expr
  18:26:38,957 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:26:38,957 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:26:38,957 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:26:38,957 DEBUG SqlGenerator:104 - <----- whereExpr
  18:26:38,957 DEBUG SqlGenerator:104 - <--- selectStatement
  18:26:38,957 DEBUG SqlGenerator:104 - <- statement
  18:26:38,957 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.Category where title = :categoryTitle
  18:26:38,957 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:26:38,957 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:26:38,959 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from Category where title = :categoryTitle)
  18:26:38,959 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:38,959 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,959 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,959 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,959 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,959 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:38,959 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:38,959 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:38,959 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:38,959 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:26:38,959 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:26:38,959 DEBUG Printer:106 - listing entities:
  18:26:38,959 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:38,959 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:38,959 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:38,962 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:26:38,962 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:38,962 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:38,962 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:26:38,962 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:26:38,962 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,962 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:26:38,962 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,967 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:26:38,967 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:38,967 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:38,967 DEBUG Loader:738 - processing result set
  18:26:38,967 DEBUG Loader:743 - result set row: 0
  18:26:38,967 DEBUG LongType:195 - returning '1' as column: id11_
  18:26:38,967 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:26:38,967 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:38,967 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:38,967 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,967 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,967 DEBUG Loader:895 - total objects hydrated: 0
  18:26:38,969 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:38,969 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:38,969 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:26:38,969 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:38,969 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:26:38,969 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:38,969 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:26:38,969 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,969 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:38,969 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,977 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:26:38,977 DEBUG StringType:153 - binding 'Must have original joysticks.' to parameter: 1
  18:26:38,977 DEBUG StringType:153 - binding 'Atari 2600 wanted' to parameter: 2
  18:26:38,994 DEBUG LongType:153 - binding '1' to parameter: 3
  18:26:38,997 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,997 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,997 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:38,997 DEBUG SQL:111 - values identity_val_local()
  18:26:38,999 DEBUG AbstractBatcher:513 - preparing statement
  18:26:38,999 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:26:38,999 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:38,999 DEBUG AbstractBatcher:562 - closing statement
  18:26:38,999 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:26:38,999 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:26:38,999 DEBUG JDBCTransaction:134 - commit
  18:26:38,999 DEBUG SessionImpl:374 - automatically flushing session
  18:26:38,999 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:38,999 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:38,999 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:38,999 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:26:38,999 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:38,999 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,002 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,002 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [<unreferenced>] (initialized)
  18:26:39,002 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,002 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,002 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:26:39,002 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 3 collections
  18:26:39,002 DEBUG Printer:106 - listing entities:
  18:26:39,002 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,002 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,002 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,002 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:26:39,004 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,004 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,004 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:39,004 DEBUG ConnectionManager:492 - registering flush begin
  18:26:39,004 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:26:39,004 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:26:39,004 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:26:39,007 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,007 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:39,007 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,012 DEBUG LongType:153 - binding '1' to parameter: 1
  18:26:39,012 DEBUG LongType:153 - binding '1' to parameter: 2
  18:26:39,014 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:26:39,014 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,014 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,014 DEBUG ConnectionManager:501 - registering flush end
  18:26:39,014 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:39,014 DEBUG JDBCContext:228 - before transaction completion
  18:26:39,014 DEBUG SessionImpl:562 - before transaction completion
  18:26:39,017 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:39,017 DEBUG JDBCContext:242 - after transaction completion
  18:26:39,017 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:39,017 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:39,017 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:39,017 DEBUG SessionImpl:592 - after transaction completion
  18:26:39,017 DEBUG JDBCTransaction:82 - begin
  18:26:39,017 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:39,017 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:39,017 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:39,019 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:39,019 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:39,019 DEBUG JDBCContext:237 - after transaction begin
  18:26:39,019 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,019 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,019 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,019 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,019 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,019 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,019 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,019 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,019 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,019 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,022 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,022 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:26:39,022 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:26:39,022 DEBUG Printer:106 - listing entities:
  18:26:39,022 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,022 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,022 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,022 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:26:39,022 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,022 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,022 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,022 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:26:39,022 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:26:39,022 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,022 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:26:39,022 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,022 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:26:39,024 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,024 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,024 DEBUG Loader:738 - processing result set
  18:26:39,024 DEBUG Loader:743 - result set row: 0
  18:26:39,024 DEBUG LongType:195 - returning '2' as column: id12_
  18:26:39,024 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:26:39,024 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,024 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,024 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,024 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,024 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,024 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,024 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,024 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,027 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,027 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,027 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,027 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,027 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,027 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,027 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,027 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,027 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,027 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:26:39,027 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:26:39,027 DEBUG Printer:106 - listing entities:
  18:26:39,027 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,027 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,027 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,027 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:26:39,027 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,029 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,029 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,029 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:26:39,029 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:26:39,029 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,029 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:26:39,029 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,029 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:26:39,029 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,029 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,029 DEBUG Loader:738 - processing result set
  18:26:39,029 DEBUG Loader:743 - result set row: 0
  18:26:39,029 DEBUG LongType:195 - returning '1' as column: id11_
  18:26:39,029 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:26:39,029 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,032 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,032 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,032 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,032 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,032 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,032 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:39,032 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:26:39,032 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:39,032 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:26:39,032 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:39,032 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:26:39,032 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,032 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:39,032 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,032 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:26:39,032 DEBUG StringType:153 - binding '48k original box and packaging' to parameter: 1
  18:26:39,034 DEBUG StringType:153 - binding 'Sinclair Spectrum for sale' to parameter: 2
  18:26:39,034 DEBUG LongType:153 - binding '2' to parameter: 3
  18:26:39,034 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,034 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,034 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,037 DEBUG SQL:111 - values identity_val_local()
  18:26:39,037 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,037 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:26:39,037 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,037 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,037 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:26:39,037 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:26:39,037 DEBUG JDBCTransaction:134 - commit
  18:26:39,037 DEBUG SessionImpl:374 - automatically flushing session
  18:26:39,037 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,037 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,037 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,037 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:26:39,037 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,037 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,039 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,039 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,039 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [<unreferenced>] (initialized)
  18:26:39,039 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,039 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,039 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:26:39,039 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 4 collections
  18:26:39,039 DEBUG Printer:106 - listing entities:
  18:26:39,039 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,039 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,039 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,039 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,039 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,039 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,042 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,042 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:39,042 DEBUG ConnectionManager:492 - registering flush begin
  18:26:39,042 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:26:39,042 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:26:39,042 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:26:39,042 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,042 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:39,042 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,042 DEBUG LongType:153 - binding '1' to parameter: 1
  18:26:39,042 DEBUG LongType:153 - binding '2' to parameter: 2
  18:26:39,044 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:26:39,044 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,044 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,044 DEBUG ConnectionManager:501 - registering flush end
  18:26:39,044 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:39,044 DEBUG JDBCContext:228 - before transaction completion
  18:26:39,044 DEBUG SessionImpl:562 - before transaction completion
  18:26:39,044 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:39,044 DEBUG JDBCContext:242 - after transaction completion
  18:26:39,044 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:39,044 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:39,044 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:39,044 DEBUG SessionImpl:592 - after transaction completion
  18:26:39,044 DEBUG JDBCTransaction:82 - begin
  18:26:39,044 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:39,044 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:39,047 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:39,047 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:39,047 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:39,047 DEBUG JDBCContext:237 - after transaction begin
  18:26:39,047 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,047 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,047 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,047 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,047 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,047 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,047 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,047 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,049 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,049 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,049 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,049 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,049 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:26:39,049 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:26:39,049 DEBUG Printer:106 - listing entities:
  18:26:39,049 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,049 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,049 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,049 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,049 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,049 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,052 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,052 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,052 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:26:39,052 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:26:39,052 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,052 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:26:39,052 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,052 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:26:39,052 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,052 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,052 DEBUG Loader:738 - processing result set
  18:26:39,054 DEBUG Loader:743 - result set row: 0
  18:26:39,054 DEBUG LongType:195 - returning '2' as column: id12_
  18:26:39,054 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:26:39,054 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,054 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,054 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,054 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,054 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,054 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,054 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,054 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,054 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,054 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,054 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,054 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,057 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,057 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,057 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,057 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,057 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,057 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,057 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:26:39,057 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:26:39,057 DEBUG Printer:106 - listing entities:
  18:26:39,057 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,057 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:26:39,057 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,057 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,057 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,057 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,057 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,059 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,059 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:26:39,059 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:26:39,059 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,059 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:26:39,059 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,059 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:26:39,059 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,059 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,059 DEBUG Loader:738 - processing result set
  18:26:39,059 DEBUG Loader:743 - result set row: 0
  18:26:39,059 DEBUG LongType:195 - returning '2' as column: id11_
  18:26:39,059 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:26:39,059 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,059 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,062 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,062 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,062 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,062 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,062 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:39,062 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:26:39,062 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:39,062 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:26:39,062 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:39,062 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:26:39,062 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,062 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:39,062 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,062 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:26:39,062 DEBUG StringType:153 - binding 'Kitten and puppies design' to parameter: 1
  18:26:39,062 DEBUG StringType:153 - binding 'Commemorative Plates' to parameter: 2
  18:26:39,064 DEBUG LongType:153 - binding '2' to parameter: 3
  18:26:39,064 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,064 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,064 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,064 DEBUG SQL:111 - values identity_val_local()
  18:26:39,064 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,064 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:26:39,064 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,064 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,064 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:26:39,067 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:26:39,067 DEBUG JDBCTransaction:134 - commit
  18:26:39,067 DEBUG SessionImpl:374 - automatically flushing session
  18:26:39,067 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,067 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,067 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,067 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:26:39,067 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,067 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,067 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,067 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,067 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,067 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [<unreferenced>] (initialized)
  18:26:39,067 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,067 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,067 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:26:39,069 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 5 collections
  18:26:39,069 DEBUG Printer:106 - listing entities:
  18:26:39,069 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,069 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:26:39,069 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,069 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,069 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:26:39,069 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,069 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,069 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,069 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:39,069 DEBUG ConnectionManager:492 - registering flush begin
  18:26:39,069 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:26:39,069 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:26:39,069 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:26:39,069 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,072 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:39,072 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,072 DEBUG LongType:153 - binding '2' to parameter: 1
  18:26:39,072 DEBUG LongType:153 - binding '3' to parameter: 2
  18:26:39,072 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:26:39,072 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,072 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,072 DEBUG ConnectionManager:501 - registering flush end
  18:26:39,072 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:39,072 DEBUG JDBCContext:228 - before transaction completion
  18:26:39,072 DEBUG SessionImpl:562 - before transaction completion
  18:26:39,074 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:39,074 DEBUG JDBCContext:242 - after transaction completion
  18:26:39,074 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:39,074 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:39,074 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:39,074 DEBUG SessionImpl:592 - after transaction completion
  18:26:39,074 DEBUG JDBCTransaction:82 - begin
  18:26:39,074 DEBUG ConnectionManager:444 - opening JDBC connection
  18:26:39,074 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:26:39,074 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:26:39,074 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:26:39,077 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:26:39,077 DEBUG JDBCContext:237 - after transaction begin
  18:26:39,077 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,077 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:26:39,077 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,077 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,077 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,077 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,077 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,077 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,077 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,077 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,077 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:26:39,077 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,077 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,079 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:26:39,079 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:26:39,079 DEBUG Printer:106 - listing entities:
  18:26:39,079 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,079 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:26:39,079 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,079 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,079 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:26:39,079 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,079 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,079 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,079 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,079 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:26:39,079 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:26:39,079 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,079 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:26:39,079 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,082 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:26:39,082 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,082 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,082 DEBUG Loader:738 - processing result set
  18:26:39,082 DEBUG Loader:743 - result set row: 0
  18:26:39,082 DEBUG LongType:195 - returning '1' as column: id12_
  18:26:39,082 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:26:39,082 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,084 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,084 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,084 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,084 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,084 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,084 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,084 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:26:39,084 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,084 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,084 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,084 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,087 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,087 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,087 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,087 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,087 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:26:39,087 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,087 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,087 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:26:39,087 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:26:39,087 DEBUG Printer:106 - listing entities:
  18:26:39,087 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,087 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:26:39,087 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,089 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,089 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:26:39,089 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,089 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,089 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,089 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:26:39,089 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:26:39,089 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:26:39,089 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,089 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:26:39,092 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,092 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:26:39,092 DEBUG Loader:1647 - Bound [2] parameters total
  18:26:39,092 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:26:39,092 DEBUG Loader:738 - processing result set
  18:26:39,092 DEBUG Loader:743 - result set row: 0
  18:26:39,092 DEBUG LongType:195 - returning '2' as column: id11_
  18:26:39,092 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:26:39,092 DEBUG Loader:765 - done processing result set (1 rows)
  18:26:39,094 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:26:39,094 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,094 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,094 DEBUG Loader:895 - total objects hydrated: 0
  18:26:39,094 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:26:39,094 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:26:39,094 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:26:39,094 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:26:39,094 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:26:39,094 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:26:39,094 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:26:39,094 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,094 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:26:39,094 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,094 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:26:39,097 DEBUG StringType:153 - binding 'Leopard skin pattern. Nice.' to parameter: 1
  18:26:39,097 DEBUG StringType:153 - binding 'Inflatable Sofa' to parameter: 2
  18:26:39,097 DEBUG LongType:153 - binding '1' to parameter: 3
  18:26:39,097 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,097 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,097 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,097 DEBUG SQL:111 - values identity_val_local()
  18:26:39,097 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,097 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 4
  18:26:39,099 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,099 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,099 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:26:39,099 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:26:39,099 DEBUG JDBCTransaction:134 - commit
  18:26:39,099 DEBUG SessionImpl:374 - automatically flushing session
  18:26:39,099 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:26:39,099 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:26:39,099 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:26:39,099 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:26:39,102 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:26:39,102 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [<unreferenced>] (initialized)
  18:26:39,102 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:26:39,102 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:26:39,104 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:26:39,104 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 6 collections
  18:26:39,104 DEBUG Printer:106 - listing entities:
  18:26:39,104 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#2, sample.entity.Advert#1]}
  18:26:39,104 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#4, sample.entity.Advert#3]}
  18:26:39,104 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:26:39,104 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:26:39,104 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:26:39,107 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:26:39,107 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:26:39,107 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:26:39,107 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:26:39,107 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:26:39,107 DEBUG ConnectionManager:492 - registering flush begin
  18:26:39,107 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:26:39,107 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:26:39,107 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:26:39,107 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:26:39,107 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:26:39,107 DEBUG AbstractBatcher:513 - preparing statement
  18:26:39,109 DEBUG LongType:153 - binding '2' to parameter: 1
  18:26:39,109 DEBUG LongType:153 - binding '4' to parameter: 2
  18:26:39,109 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:26:39,109 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:26:39,109 DEBUG AbstractBatcher:562 - closing statement
  18:26:39,109 DEBUG ConnectionManager:501 - registering flush end
  18:26:39,109 DEBUG AbstractFlushingEventListener:344 - post flush
  18:26:39,109 DEBUG JDBCContext:228 - before transaction completion
  18:26:39,109 DEBUG SessionImpl:562 - before transaction completion
  18:26:39,109 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:26:39,112 DEBUG JDBCContext:242 - after transaction completion
  18:26:39,112 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:26:39,112 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:39,112 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:39,112 DEBUG SessionImpl:592 - after transaction completion
  18:26:39,112 DEBUG SessionImpl:310 - closing session
  18:26:39,114 DEBUG ConnectionManager:403 - performing cleanup
  18:26:39,114 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:26:39,114 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:26:39,117  INFO SessionFactoryImpl:938 - closing
  18:26:39,117  INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:derby:firstdb
  18:34:46,144  INFO Version:43 - Hibernate Annotations 3.5.3-Final
  18:34:46,159  INFO Environment:570 - Hibernate 3.5.3-Final
  18:34:46,159  INFO Environment:603 - hibernate.properties not found
  18:34:46,159  INFO Environment:781 - Bytecode provider name : javassist
  18:34:46,159  INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
  18:34:46,206 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:34:46,222 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:34:46,237  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
  18:34:46,237  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:34:46,237  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:34:46,268 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:34:46,268 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:34:46,268 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:34:46,268 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:34:46,284 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:34:46,284 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:34:46,284 DEBUG Configuration:1479 - hibernate.connection.username=
  18:34:46,284 DEBUG Configuration:1479 - hibernate.connection.password=
  18:34:46,284 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:34:46,284 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:34:46,284 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:34:46,284 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:34:46,284 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@27c4c54d [Attribute: name class value "sample.entity.Message"]
  18:34:46,300 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@795525a1 [Attribute: name class value "sample.entity.Advert"]
  18:34:46,300 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@38a07e00 [Attribute: name class value "sample.entity.Category"]
  18:34:46,300 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@772baaac [Attribute: name class value "sample.entity.User"]
  18:34:46,315  INFO Configuration:1633 - Configured SessionFactory: null
  18:34:46,315 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50896 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-345748836\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:34:46,315 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:34:46,315 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:34:46,315  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:34:46,315 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:34:46,315 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:46,347 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:46,347 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:46,347  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:34:46,362 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:46,362 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:46,378 DEBUG EntityBinder:338 - Import with entity name Message
  18:34:46,378  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:34:46,409 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:34:46,409 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:46,409 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:46,409 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:46,409 DEBUG PropertyBinder:254 - Building property id
  18:34:46,409 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:46,425 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:46,425 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:34:46,425 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:34:46,425 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:34:46,425 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:34:46,425 DEBUG PropertyBinder:254 - Building property messageText
  18:34:46,425 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:34:46,425  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:34:46,425 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:46,425 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:46,425 DEBUG EntityBinder:338 - Import with entity name Advert
  18:34:46,425  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:34:46,426 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:34:46,426 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:46,426 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:46,426 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:46,426 DEBUG PropertyBinder:254 - Building property id
  18:34:46,426 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:46,426 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:46,426 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:34:46,426 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:34:46,441 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:34:46,457 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:34:46,457 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:34:46,457 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:34:46,457 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:34:46,457 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:34:46,457 DEBUG PropertyBinder:254 - Building property categories
  18:34:46,457 DEBUG PropertyBinder:311 - Cascading categories with none
  18:34:46,457 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:34:46,457 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:34:46,457 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:34:46,457 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:34:46,472 DEBUG PropertyBinder:254 - Building property message
  18:34:46,472 DEBUG PropertyBinder:311 - Cascading message with null
  18:34:46,472 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:34:46,472 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:34:46,472 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:34:46,472 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:34:46,472 DEBUG PropertyBinder:254 - Building property title
  18:34:46,472 DEBUG PropertyBinder:311 - Cascading title with null
  18:34:46,472 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:34:46,472 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:34:46,472 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:34:46,472 DEBUG PropertyBinder:254 - Building property user
  18:34:46,472 DEBUG PropertyBinder:311 - Cascading user with none
  18:34:46,472  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:34:46,472 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:46,472 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:46,472 DEBUG EntityBinder:338 - Import with entity name Category
  18:34:46,472  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:34:46,488 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:46,488 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:46,488 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:46,488 DEBUG PropertyBinder:254 - Building property id
  18:34:46,488 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:46,488 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:46,488 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:34:46,488 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:34:46,488 DEBUG PropertyBinder:254 - Building property adverts
  18:34:46,488 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:34:46,488 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:34:46,488 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:34:46,488 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:34:46,488 DEBUG PropertyBinder:254 - Building property title
  18:34:46,488 DEBUG PropertyBinder:311 - Cascading title with null
  18:34:46,488  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:46,488 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:46,488 DEBUG EntityBinder:338 - Import with entity name User
  18:34:46,488  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:34:46,488 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:46,488 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:46,488 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:46,488 DEBUG PropertyBinder:254 - Building property id
  18:34:46,488 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:46,488 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:46,488 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:34:46,488 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:34:46,488 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:34:46,504 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:34:46,504 DEBUG PropertyBinder:254 - Building property name
  18:34:46,504 DEBUG PropertyBinder:311 - Cascading name with null
  18:34:46,504 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:34:46,504 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:34:46,504 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:34:46,504 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:34:46,504 DEBUG PropertyBinder:254 - Building property password
  18:34:46,504 DEBUG PropertyBinder:311 - Cascading password with null
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:34:46,504 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:34:46,504 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:46,550 DEBUG Configuration:1211 - processing extends queue
  18:34:46,550 DEBUG Configuration:1215 - processing collection mappings
  18:34:46,550 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:34:46,550 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:34:46,550 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:34:46,550 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:34:46,566 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:34:46,566 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:34:46,566 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:34:46,566 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:46,566 DEBUG Configuration:1234 - processing association property references
  18:34:46,566 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:46,566 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:46,566 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:46,566 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:46,566  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:34:46,566  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:34:46,582  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:34:46,582  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:34:46,800  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:34:46,800  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:34:46,800 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:46,800 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:47,523 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:47,523  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:34:47,523  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:34:47,539  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:34:47,540 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:34:47,540 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:47,540  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:34:47,540  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:34:47,540  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:34:47,540  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:34:47,540  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:34:47,540 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:34:47,540  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:34:47,540  INFO SettingsFactory:204 - Connection release mode: auto
  18:34:47,540  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:34:47,555  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:34:47,555  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:34:47,555  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:34:47,555  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:34:47,571  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:34:47,571  INFO SettingsFactory:251 - Query language substitutions: {}
  18:34:47,571  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:34:47,571  INFO SettingsFactory:261 - Second-level cache: enabled
  18:34:47,571  INFO SettingsFactory:265 - Query cache: disabled
  18:34:47,571  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:34:47,571  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:34:47,571  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:34:47,571 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:34:47,571  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:34:47,571  INFO SettingsFactory:313 - Statistics: disabled
  18:34:47,571  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:34:47,571  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:34:47,571  INFO SettingsFactory:336 - Named query checking : enabled
  18:34:47,571  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:34:47,602  INFO SessionFactoryImpl:199 - building session factory
  18:34:47,602 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:34:47,602 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:34:47,618 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:34:47,618 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50896 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-345748836\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:34:47,618 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,618 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,618 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,618 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,743 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:34:47,743 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,743 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,758 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:34:47,758 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:34:47,758 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title2_ from Category category_ where category_.id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:34:47,758 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,758 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:34:47,758 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:34:47,758 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message1_, advert_.title as title1_, advert_.aduser as aduser1_ from Advert advert_ where advert_.id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:34:47,758 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:34:47,758 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:47,758 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,774 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@2f1fa5c3], incoming type = [org.hibernate.type.IntegerType@2f1fa5c3]
  18:34:47,774 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:34:47,774 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:34:47,774 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_0_ from Message message_ where message_.id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:34:47,774 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:34:47,774 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,774 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:47,774 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:47,774 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:34:47,774 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:34:47,774 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name3_, user_.password as password3_ from AdUser user_ where user_.id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:34:47,774 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:34:47,774 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:34:47,774 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:34:47,789 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:47,789 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:34:47,789 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:34:47,789 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:34:47,789 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:34:47,789 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:34:47,789 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:34:47,789 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:34:47,789 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:47,789 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for read only with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,805 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,805 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:47,805 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for read only with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,821 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,821 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:34:47,821 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_2_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id1_0_, advert1_.message as message1_0_, advert1_.title as title1_0_, advert1_.aduser as aduser1_0_, user2_.id as id3_1_, user2_.name as name3_1_, user2_.password as password3_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:34:47,821 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_1_1_, categories0_.categories_id as categories1_1_, category1_.id as id2_0_, category1_.title as title2_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:34:47,821 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
  18:34:47,821 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1040be014a1040c4cd0000 (unnamed)
  18:34:47,821  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:34:47,821 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:34:47,821 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:47,821 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:47,821 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:47,821 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:47,821 DEBUG Configuration:1211 - processing extends queue
  18:34:47,821 DEBUG Configuration:1215 - processing collection mappings
  18:34:47,821 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:47,821 DEBUG Configuration:1234 - processing association property references
  18:34:47,821 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:47,821 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:47,821 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:47,821 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:47,821 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:47,836 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:47,836 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:47,836 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:47,836 DEBUG Configuration:1211 - processing extends queue
  18:34:47,836 DEBUG Configuration:1215 - processing collection mappings
  18:34:47,836 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:47,836 DEBUG Configuration:1234 - processing association property references
  18:34:47,836 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:47,836 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:47,836 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:47,836 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:47,836  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:34:47,836 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:34:47,836  INFO SchemaExport:251 - exporting generated schema to database
  18:34:47,836 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:47,836 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:47,836 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:47,836 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:34:47,992 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:34:48,024 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:34:48,039 DEBUG SchemaExport:377 - drop table AdUser
  18:34:48,070 DEBUG SchemaExport:377 - drop table Advert
  18:34:48,086 DEBUG SchemaExport:377 - drop table Category
  18:34:48,102 DEBUG SchemaExport:377 - drop table Message
  18:34:48,133 DEBUG SchemaExport:377 - drop table link_category_advert
  18:34:48,164 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:34:48,211 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:34:48,226 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:34:48,242 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:34:48,258 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:34:48,273 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:34:48,304 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:34:48,320 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:34:48,336  INFO SchemaExport:268 - schema export complete
  18:34:48,336 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,336 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:34:48,336 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:34:48,367 DEBUG SessionImpl:257 - opened session at timestamp: 14176118883
  18:34:48,367 DEBUG JDBCTransaction:82 - begin
  18:34:48,367 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,367 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,367 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,382 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,382 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,382 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:34:48,382 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:34:48,382  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:34:48,382  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:34:48,382 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:34:48,382 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:34:48,382 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:34:48,382 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:34:48,398 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:34:48,398 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:34:48,398 DEBUG Configuration:1479 - hibernate.connection.username=
  18:34:48,398 DEBUG Configuration:1479 - hibernate.connection.password=
  18:34:48,398 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:34:48,398 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:34:48,398 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:34:48,398 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:34:48,398 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@69b7cd2e [Attribute: name class value "sample.entity.Message"]
  18:34:48,398 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@1ce07ded [Attribute: name class value "sample.entity.Advert"]
  18:34:48,398 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@23c8a279 [Attribute: name class value "sample.entity.Category"]
  18:34:48,398 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@a8b5622 [Attribute: name class value "sample.entity.User"]
  18:34:48,398  INFO Configuration:1633 - Configured SessionFactory: null
  18:34:48,398 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50896 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-345748836\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:34:48,398 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:34:48,398 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:34:48,398  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:34:48,398 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:34:48,398 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:48,398 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:48,398 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:48,398  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:48,398 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:48,398 DEBUG EntityBinder:338 - Import with entity name Message
  18:34:48,398  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:34:48,398 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:48,398 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:48,398 DEBUG PropertyBinder:254 - Building property id
  18:34:48,398 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:48,398 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:48,398 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:34:48,398 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:34:48,398 DEBUG PropertyBinder:254 - Building property messageText
  18:34:48,398 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:34:48,398  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:48,398 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:48,398 DEBUG EntityBinder:338 - Import with entity name Advert
  18:34:48,398  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:34:48,398 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:48,398 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:48,398 DEBUG PropertyBinder:254 - Building property id
  18:34:48,398 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:48,398 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:48,398 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:34:48,398 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:34:48,398 DEBUG PropertyBinder:254 - Building property categories
  18:34:48,398 DEBUG PropertyBinder:311 - Cascading categories with none
  18:34:48,398 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:34:48,398 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:34:48,398 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:34:48,398 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:34:48,398 DEBUG PropertyBinder:254 - Building property message
  18:34:48,398 DEBUG PropertyBinder:311 - Cascading message with null
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:34:48,414 DEBUG PropertyBinder:254 - Building property title
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading title with null
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG PropertyBinder:254 - Building property user
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading user with none
  18:34:48,414  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:48,414 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:48,414 DEBUG EntityBinder:338 - Import with entity name Category
  18:34:48,414  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:48,414 DEBUG PropertyBinder:254 - Building property id
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:48,414 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:34:48,414 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:34:48,414 DEBUG PropertyBinder:254 - Building property adverts
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:34:48,414 DEBUG PropertyBinder:254 - Building property title
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading title with null
  18:34:48,414  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:34:48,414 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:34:48,414 DEBUG EntityBinder:338 - Import with entity name User
  18:34:48,414  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:34:48,414 DEBUG PropertyBinder:254 - Building property id
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading id with null
  18:34:48,414 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:34:48,414 DEBUG PropertyBinder:254 - Building property name
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading name with null
  18:34:48,414 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:34:48,414 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:34:48,414 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:34:48,414 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:34:48,414 DEBUG PropertyBinder:254 - Building property password
  18:34:48,414 DEBUG PropertyBinder:311 - Cascading password with null
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:34:48,414 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:34:48,414 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:48,414 DEBUG Configuration:1211 - processing extends queue
  18:34:48,414 DEBUG Configuration:1215 - processing collection mappings
  18:34:48,414 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:34:48,414 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:34:48,414 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:34:48,414 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:34:48,429 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:34:48,429 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:34:48,429 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:34:48,429 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:48,429 DEBUG Configuration:1234 - processing association property references
  18:34:48,429 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:48,429 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:48,429 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:48,429 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:48,429  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:34:48,429  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:34:48,429  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:34:48,429  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:34:48,429  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:34:48,429  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:34:48,429 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,429 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,429 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,429  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:34:48,429  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:34:48,429  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:34:48,429 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:34:48,429 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,429  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:34:48,429  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:34:48,429  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:34:48,429  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:34:48,429  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:34:48,429 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:34:48,429  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:34:48,429  INFO SettingsFactory:204 - Connection release mode: auto
  18:34:48,429  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:34:48,429  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:34:48,429  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:34:48,429  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:34:48,429  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:34:48,429  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:34:48,429  INFO SettingsFactory:251 - Query language substitutions: {}
  18:34:48,429  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:34:48,429  INFO SettingsFactory:261 - Second-level cache: enabled
  18:34:48,429  INFO SettingsFactory:265 - Query cache: disabled
  18:34:48,429  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:34:48,429  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:34:48,429  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:34:48,429 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:34:48,429  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:34:48,429  INFO SettingsFactory:313 - Statistics: disabled
  18:34:48,429  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:34:48,429  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:34:48,429  INFO SettingsFactory:336 - Named query checking : enabled
  18:34:48,429  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:34:48,445  INFO SessionFactoryImpl:199 - building session factory
  18:34:48,445 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:34:48,445 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:34:48,445 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:34:48,445 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50896 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-345748836\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:34:48,445 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,445 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,445 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,445 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:34:48,445 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:34:48,445 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title11_ from Category category_ where category_.id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:34:48,445 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:34:48,445 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:34:48,445 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message10_, advert_.title as title10_, advert_.aduser as aduser10_ from Advert advert_ where advert_.id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:34:48,445 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@2f1fa5c3], incoming type = [org.hibernate.type.IntegerType@2f1fa5c3]
  18:34:48,445 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:34:48,445 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:34:48,445 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_9_ from Message message_ where message_.id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:34:48,445 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@7fc29cb8], incoming type = [org.hibernate.type.StringType@7fc29cb8]
  18:34:48,445 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@70556101], incoming type = [org.hibernate.type.LongType@70556101]
  18:34:48,445 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:34:48,445 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:34:48,445 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name12_, user_.password as password12_ from AdUser user_ where user_.id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:34:48,445 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:34:48,445 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:34:48,461 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:34:48,461 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:48,461 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:34:48,461 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:34:48,461 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:34:48,461 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:34:48,461 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:34:48,461 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:34:48,461 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:34:48,461 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:34:48,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:48,461 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for read only with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for read only with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:34:48,476 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_11_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id10_0_, advert1_.message as message10_0_, advert1_.title as title10_0_, advert1_.aduser as aduser10_0_, user2_.id as id12_1_, user2_.name as name12_1_, user2_.password as password12_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:34:48,476 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_10_1_, categories0_.categories_id as categories1_1_, category1_.id as id11_0_, category1_.title as title11_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:34:48,476 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1040be014a1040c75c0001 (unnamed)
  18:34:48,492  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:34:48,492 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:34:48,492 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:48,492 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:48,492 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:48,492 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:48,492 DEBUG Configuration:1211 - processing extends queue
  18:34:48,492 DEBUG Configuration:1215 - processing collection mappings
  18:34:48,492 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:48,492 DEBUG Configuration:1234 - processing association property references
  18:34:48,492 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:34:48,492 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:34:48,492 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:34:48,492 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:34:48,492 DEBUG Configuration:1211 - processing extends queue
  18:34:48,492 DEBUG Configuration:1215 - processing collection mappings
  18:34:48,492 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:34:48,492 DEBUG Configuration:1234 - processing association property references
  18:34:48,492 DEBUG Configuration:1256 - processing foreign key constraints
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:34:48,492 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:34:48,492  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:34:48,492 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:34:48,492  INFO SchemaExport:251 - exporting generated schema to database
  18:34:48,492 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,492 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,492 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,492 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:34:48,507 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:34:48,554 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:34:48,555 DEBUG SchemaExport:377 - drop table AdUser
  18:34:48,586 DEBUG SchemaExport:377 - drop table Advert
  18:34:48,602 DEBUG SchemaExport:377 - drop table Category
  18:34:48,618 DEBUG SchemaExport:377 - drop table Message
  18:34:48,633 DEBUG SchemaExport:377 - drop table link_category_advert
  18:34:48,649 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:34:48,680 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:34:48,696 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:34:48,711 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:34:48,742 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:34:48,758 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:34:48,774 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:34:48,789 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:34:48,821  INFO SchemaExport:268 - schema export complete
  18:34:48,821 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,821 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:34:48,821 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:34:48,821 DEBUG SessionImpl:257 - opened session at timestamp: 14176118888
  18:34:48,821 DEBUG JDBCTransaction:82 - begin
  18:34:48,821 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,821 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,821 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,821 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,821 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,821 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,821 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:48,836 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:34:48,836 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:48,836 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:34:48,836 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:48,836 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:34:48,836 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,836 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:34:48,836 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,899 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:34:48,899 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:34:48,899 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,899 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,914 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,914 DEBUG SQL:111 - values identity_val_local()
  18:34:48,914 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,914 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:34:48,914 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,914 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,914 DEBUG JDBCTransaction:134 - commit
  18:34:48,914 DEBUG SessionImpl:374 - automatically flushing session
  18:34:48,914 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:48,914 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:48,930 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:48,930 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:48,930 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [<unreferenced>] (initialized)
  18:34:48,930 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:48,930 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:48,930 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
  18:34:48,930 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
  18:34:48,930 DEBUG Printer:106 - listing entities:
  18:34:48,930 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:48,930 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:48,930 DEBUG ConnectionManager:492 - registering flush begin
  18:34:48,930 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#1]
  18:34:48,930 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:34:48,930 DEBUG ConnectionManager:501 - registering flush end
  18:34:48,930 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:48,930 DEBUG JDBCContext:228 - before transaction completion
  18:34:48,930 DEBUG SessionImpl:562 - before transaction completion
  18:34:48,930 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:48,930 DEBUG JDBCContext:242 - after transaction completion
  18:34:48,930 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:48,945 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,945 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,945 DEBUG SessionImpl:592 - after transaction completion
  18:34:48,945 DEBUG JDBCTransaction:82 - begin
  18:34:48,945 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,945 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,945 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,945 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,945 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,945 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,945 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:48,945 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:34:48,945 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:48,945 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:34:48,945 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:48,945 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:34:48,945 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,945 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:34:48,945 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,945 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:34:48,945 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:34:48,945 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,945 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,945 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,945 DEBUG SQL:111 - values identity_val_local()
  18:34:48,945 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,945 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:34:48,945 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,945 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,945 DEBUG JDBCTransaction:134 - commit
  18:34:48,945 DEBUG SessionImpl:374 - automatically flushing session
  18:34:48,945 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:48,945 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:48,945 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:48,945 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:48,945 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:48,945 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [<unreferenced>] (initialized)
  18:34:48,945 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:48,945 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:48,945 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 2 objects
  18:34:48,945 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:48,945 DEBUG Printer:106 - listing entities:
  18:34:48,945 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:48,945 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:48,945 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:48,945 DEBUG ConnectionManager:492 - registering flush begin
  18:34:48,945 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#2]
  18:34:48,945 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:34:48,945 DEBUG ConnectionManager:501 - registering flush end
  18:34:48,945 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:48,945 DEBUG JDBCContext:228 - before transaction completion
  18:34:48,945 DEBUG SessionImpl:562 - before transaction completion
  18:34:48,945 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:48,945 DEBUG JDBCContext:242 - after transaction completion
  18:34:48,945 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:48,945 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,945 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,945 DEBUG SessionImpl:592 - after transaction completion
  18:34:48,945 DEBUG SessionImpl:310 - closing session
  18:34:48,945 DEBUG ConnectionManager:403 - performing cleanup
  18:34:48,945 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,945 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,961 DEBUG SessionImpl:257 - opened session at timestamp: 14176118889
  18:34:48,961 DEBUG JDBCTransaction:82 - begin
  18:34:48,961 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,961 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,961 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,961 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,961 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,961 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,961 DEBUG JDBCTransaction:82 - begin
  18:34:48,961 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,961 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,961 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,961 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,961 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,961 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,961 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:48,961 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:34:48,961 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:48,961 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:48,961 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:34:48,961 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,961 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:34:48,961 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,961 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:34:48,961 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:34:48,961 DEBUG StringType:153 - binding 'jammy' to parameter: 2
  18:34:48,961 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,961 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,961 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,961 DEBUG SQL:111 - values identity_val_local()
  18:34:48,961 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,961 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:34:48,961 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,961 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,977 DEBUG JDBCTransaction:134 - commit
  18:34:48,977 DEBUG SessionImpl:374 - automatically flushing session
  18:34:48,977 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:48,977 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:48,977 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:48,977 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:48,977 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:48,977 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:48,977 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:48,977 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:48,977 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 3 objects
  18:34:48,977 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:48,977 DEBUG Printer:106 - listing entities:
  18:34:48,977 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:48,977 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:48,977 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:48,977 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:48,977 DEBUG ConnectionManager:492 - registering flush begin
  18:34:48,977 DEBUG ConnectionManager:501 - registering flush end
  18:34:48,977 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:48,977 DEBUG JDBCContext:228 - before transaction completion
  18:34:48,977 DEBUG SessionImpl:562 - before transaction completion
  18:34:48,977 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:48,977 DEBUG JDBCContext:242 - after transaction completion
  18:34:48,977 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:48,977 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,977 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,977 DEBUG SessionImpl:592 - after transaction completion
  18:34:48,977 DEBUG JDBCTransaction:82 - begin
  18:34:48,977 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,977 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,977 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,977 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,977 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,977 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,977 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:48,977 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:34:48,977 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:48,977 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:48,977 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:34:48,977 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,977 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:34:48,977 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,977 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:34:48,977 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:34:48,977 DEBUG StringType:153 - binding 'dodgy' to parameter: 2
  18:34:48,977 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,977 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,977 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,977 DEBUG SQL:111 - values identity_val_local()
  18:34:48,977 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,977 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:34:48,977 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,977 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,977 DEBUG JDBCTransaction:134 - commit
  18:34:48,977 DEBUG SessionImpl:374 - automatically flushing session
  18:34:48,977 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:48,977 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:48,977 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:48,977 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:48,977 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:48,977 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:48,977 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:48,977 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:48,977 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 4 objects
  18:34:48,977 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:48,977 DEBUG Printer:106 - listing entities:
  18:34:48,977 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:48,977 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:48,977 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:48,977 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:48,977 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:48,977 DEBUG ConnectionManager:492 - registering flush begin
  18:34:48,977 DEBUG ConnectionManager:501 - registering flush end
  18:34:48,977 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:48,977 DEBUG JDBCContext:228 - before transaction completion
  18:34:48,977 DEBUG SessionImpl:562 - before transaction completion
  18:34:48,977 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:48,977 DEBUG JDBCContext:242 - after transaction completion
  18:34:48,977 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:48,977 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,977 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,992 DEBUG SessionImpl:592 - after transaction completion
  18:34:48,992 DEBUG JDBCTransaction:82 - begin
  18:34:48,992 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,992 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,992 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:48,992 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:48,992 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:48,992 DEBUG JDBCContext:237 - after transaction begin
  18:34:48,992 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:48,992 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:34:48,992 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:48,992 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:48,992 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:34:48,992 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,992 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:34:48,992 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,992 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:34:48,992 DEBUG StringType:153 - binding 'Jeya' to parameter: 1
  18:34:48,992 DEBUG StringType:153 - binding 'Keerthi' to parameter: 2
  18:34:48,992 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,992 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,992 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:48,992 DEBUG SQL:111 - values identity_val_local()
  18:34:48,992 DEBUG AbstractBatcher:513 - preparing statement
  18:34:48,992 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:34:48,992 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:48,992 DEBUG AbstractBatcher:562 - closing statement
  18:34:48,992 DEBUG JDBCTransaction:134 - commit
  18:34:48,992 DEBUG SessionImpl:374 - automatically flushing session
  18:34:48,992 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:48,992 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:48,992 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:48,992 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:48,992 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:48,992 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:48,992 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:48,992 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:48,992 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:34:48,992 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:48,992 DEBUG Printer:106 - listing entities:
  18:34:48,992 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:48,992 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:48,992 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:48,992 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:48,992 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:48,992 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:48,992 DEBUG ConnectionManager:492 - registering flush begin
  18:34:48,992 DEBUG ConnectionManager:501 - registering flush end
  18:34:48,992 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:48,992 DEBUG JDBCContext:228 - before transaction completion
  18:34:48,992 DEBUG SessionImpl:562 - before transaction completion
  18:34:48,992 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:48,992 DEBUG JDBCContext:242 - after transaction completion
  18:34:48,992 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:48,992 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,992 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,992 DEBUG SessionImpl:592 - after transaction completion
  18:34:48,992 DEBUG SessionImpl:310 - closing session
  18:34:48,992 DEBUG ConnectionManager:403 - performing cleanup
  18:34:48,992 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:48,992 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:48,992 DEBUG SessionImpl:257 - opened session at timestamp: 14176118889
  18:34:48,992 DEBUG JDBCTransaction:82 - begin
  18:34:48,992 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:48,992 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:48,992 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,008 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,008 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,008 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,008 DEBUG JDBCTransaction:82 - begin
  18:34:49,008 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,008 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,008 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,008 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,008 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,008 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,008 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from User where name = :username)
  18:34:49,039 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.User where name = :username
  18:34:49,039 DEBUG HqlParser:88 - -> statement
  18:34:49,039 DEBUG HqlParser:88 - ---> selectStatement
  18:34:49,039 DEBUG HqlParser:88 - -----> queryRule
  18:34:49,039 DEBUG HqlParser:88 - -------> selectFrom
  18:34:49,039 DEBUG HqlParser:88 - ---------> fromClause
  18:34:49,039 DEBUG HqlParser:88 - -----------> fromRange
  18:34:49,039 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:34:49,039 DEBUG HqlParser:88 - ---------------> path
  18:34:49,039 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,039 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,039 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,039 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,039 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,039 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,039 DEBUG HqlParser:96 - <--------------- path
  18:34:49,055 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:34:49,055 DEBUG HqlParser:96 - <----------- fromRange
  18:34:49,055 DEBUG HqlParser:96 - <--------- fromClause
  18:34:49,055 DEBUG HqlParser:96 - <------- selectFrom
  18:34:49,055 DEBUG HqlParser:88 - -------> whereClause
  18:34:49,055 DEBUG HqlParser:88 - ---------> logicalExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------> expression
  18:34:49,055 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:34:49,055 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:34:49,055 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:34:49,055 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------------> concatenation
  18:34:49,055 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:34:49,055 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:34:49,055 DEBUG HqlParser:88 - -------------------------------> atom
  18:34:49,055 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:34:49,055 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:34:49,055 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:34:49,055 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:34:49,055 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:34:49,055 DEBUG HqlParser:96 - <------------------------------- atom
  18:34:49,055 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:34:49,055 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:34:49,055 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:34:49,055 DEBUG HqlParser:96 - <----------------------- concatenation
  18:34:49,055 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:34:49,055 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------------> concatenation
  18:34:49,055 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:34:49,055 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:34:49,055 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:34:49,055 DEBUG HqlParser:88 - -------------------------------> atom
  18:34:49,070 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:34:49,070 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:34:49,070 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:34:49,070 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:34:49,070 DEBUG HqlParser:96 - <------------------------------- atom
  18:34:49,070 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:34:49,070 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:34:49,070 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:34:49,070 DEBUG HqlParser:96 - <----------------------- concatenation
  18:34:49,070 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:34:49,070 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:34:49,070 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:34:49,070 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:34:49,070 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:34:49,070 DEBUG HqlParser:96 - <----------- expression
  18:34:49,070 DEBUG HqlParser:96 - <--------- logicalExpression
  18:34:49,070 DEBUG HqlParser:96 - <------- whereClause
  18:34:49,070 DEBUG HqlParser:96 - <----- queryRule
  18:34:49,070 DEBUG HqlParser:96 - <--- selectStatement
  18:34:49,070 DEBUG HqlParser:96 - <- statement
  18:34:49,070 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'User'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'name'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'username'

  18:34:49,070 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,086 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:34:49,086 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:34:49,086 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:34:49,086 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:34:49,086 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:34:49,086 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,101 DEBUG HqlSqlWalker:200 - <----------------- path
  18:34:49,101 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:34:49,101 DEBUG HqlSqlWalker:200 - <--------------- path
  18:34:49,101 DEBUG HqlSqlWalker:186 - ---------------> identifier (User [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:34:49,101 DEBUG HqlSqlWalker:200 - <------------- path
  18:34:49,101 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.User (no alias) -> user0_
  18:34:49,101 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:34:49,101 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:34:49,101 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:34:49,101 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:34:49,101 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (name [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - ---------------> expr (name [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (name [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:186 - -------------------> identifier (name [IDENT])
  18:34:49,101 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,117 DEBUG HqlSqlWalker:578 - attempting to resolve property [name] as a non-qualified ref
  18:34:49,117 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:34:49,117 DEBUG FromElement:626 - handling property dereference [sample.entity.User (null) -> name (class)]
  18:34:49,117 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:34:49,117 DEBUG DotNode:613 - getDataType() : name -> org.hibernate.type.StringType@7fc29cb8
  18:34:49,117 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.name -> user0_.name
  18:34:49,117 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:34:49,117 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:34:49,117 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:34:49,117 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:34:49,117 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:34:49,117 DEBUG HqlSqlWalker:186 - -------------------> identifier (username [IDENT])
  18:34:49,117 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,117 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:34:49,117 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:34:49,117 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:34:49,117 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:34:49,117 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:34:49,117 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:34:49,117 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:34:49,117 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} AdUser user0_ ) ( where ( = ( user0_.name {synthetic-alias} name ) ? ) ) )
  18:34:49,117 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:34:49,117 DEBUG JoinProcessor:179 - Using FROM fragment [AdUser user0_]
  18:34:49,117 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:34:49,117 DEBUG HqlSqlWalker:200 - <----- query
  18:34:49,117 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:34:49,117 DEBUG HqlSqlWalker:200 - <- statement
  18:34:49,117 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (AdUser)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'user0_.id as id12_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}}
    |  \-[SQL_TOKEN] SqlFragment: 'user0_.name as name12_, user0_.password as password12_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[user0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'AdUser user0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'user0_.name' {propertyName=name,dereferenceType=ALL,propertyPath=name,path={synthetic-alias}.name,tableAlias=user0_,className=sample.entity.User,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'name' {originalText=name}
          \-[NAMED_PARAM] ParameterNode: '?' {name=username, expectedType=org.hibernate.type.StringType@7fc29cb8}

  18:34:49,133 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,133 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:34:49,133 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:34:49,133 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:34:49,133 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.id as id12_ [SELECT_EXPR])
  18:34:49,133 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.id as id12_ [SELECT_EXPR])
  18:34:49,133 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.id as id12_ [SELECT_EXPR])
  18:34:49,133 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,133 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,133 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:34:49,133 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:34:49,133 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:34:49,133 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,133 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,133 DEBUG SqlGenerator:104 - <----- selectClause
  18:34:49,133 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:34:49,133 DEBUG SqlGenerator:90 - -------> fromTable (AdUser user0_ [FROM_FRAGMENT])
  18:34:49,133 DEBUG SqlGenerator:104 - <------- fromTable
  18:34:49,133 DEBUG SqlGenerator:104 - <----- from
  18:34:49,133 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:34:49,133 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:34:49,133 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:34:49,133 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:34:49,133 DEBUG SqlGenerator:90 - -------------> expr (user0_.name [DOT])
  18:34:49,133 DEBUG SqlGenerator:90 - ---------------> simpleExpr (user0_.name [DOT])
  18:34:49,133 DEBUG SqlGenerator:90 - -----------------> addrExpr (user0_.name [DOT])
  18:34:49,133 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <------------- expr
  18:34:49,133 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:34:49,133 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:34:49,133 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:34:49,133 DEBUG SqlGenerator:104 - <----------------- parameter
  18:34:49,133 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <------------- expr
  18:34:49,133 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:34:49,133 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:34:49,133 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:34:49,148 DEBUG SqlGenerator:104 - <----- whereExpr
  18:34:49,148 DEBUG SqlGenerator:104 - <--- selectStatement
  18:34:49,148 DEBUG SqlGenerator:104 - <- statement
  18:34:49,148 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.User where name = :username
  18:34:49,148 DEBUG QueryTranslatorImpl:242 - SQL: select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:34:49,148 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,148 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from User where name = :username)
  18:34:49,148 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,148 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,148 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,148 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,148 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,148 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,148 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,148 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,148 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,148 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:34:49,148 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:49,148 DEBUG Printer:106 - listing entities:
  18:34:49,148 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,148 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,148 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,148 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:49,148 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,148 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,148 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:34:49,148 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:34:49,148 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,148 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:34:49,164 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,179 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:34:49,179 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,179 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,179 DEBUG Loader:738 - processing result set
  18:34:49,179 DEBUG Loader:743 - result set row: 0
  18:34:49,179 DEBUG LongType:195 - returning '1' as column: id12_
  18:34:49,179 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:34:49,179 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,179 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,179 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,179 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,179 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,179 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,179 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from Category where title = :categoryTitle)
  18:34:49,179 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.Category where title = :categoryTitle
  18:34:49,179 DEBUG HqlParser:88 - -> statement
  18:34:49,179 DEBUG HqlParser:88 - ---> selectStatement
  18:34:49,179 DEBUG HqlParser:88 - -----> queryRule
  18:34:49,179 DEBUG HqlParser:88 - -------> selectFrom
  18:34:49,179 DEBUG HqlParser:88 - ---------> fromClause
  18:34:49,179 DEBUG HqlParser:88 - -----------> fromRange
  18:34:49,179 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:34:49,179 DEBUG HqlParser:88 - ---------------> path
  18:34:49,179 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,179 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,179 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,179 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,179 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,179 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,179 DEBUG HqlParser:96 - <--------------- path
  18:34:49,179 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:34:49,179 DEBUG HqlParser:96 - <----------- fromRange
  18:34:49,179 DEBUG HqlParser:96 - <--------- fromClause
  18:34:49,179 DEBUG HqlParser:96 - <------- selectFrom
  18:34:49,179 DEBUG HqlParser:88 - -------> whereClause
  18:34:49,179 DEBUG HqlParser:88 - ---------> logicalExpression
  18:34:49,179 DEBUG HqlParser:88 - -----------> expression
  18:34:49,179 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:34:49,179 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:34:49,179 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:34:49,179 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:34:49,179 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:34:49,179 DEBUG HqlParser:88 - -----------------------> concatenation
  18:34:49,179 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:34:49,179 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:34:49,179 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:34:49,179 DEBUG HqlParser:88 - -------------------------------> atom
  18:34:49,179 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:34:49,195 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:34:49,195 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:34:49,195 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:34:49,195 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:34:49,195 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------------------------- atom
  18:34:49,195 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:34:49,195 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:34:49,195 DEBUG HqlParser:96 - <----------------------- concatenation
  18:34:49,195 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:34:49,195 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:34:49,195 DEBUG HqlParser:88 - -----------------------> concatenation
  18:34:49,195 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:34:49,195 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:34:49,195 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:34:49,195 DEBUG HqlParser:88 - -------------------------------> atom
  18:34:49,195 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:34:49,195 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:34:49,195 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:34:49,195 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------------------------- atom
  18:34:49,195 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:34:49,195 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:34:49,195 DEBUG HqlParser:96 - <----------------------- concatenation
  18:34:49,195 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:34:49,195 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:34:49,195 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:34:49,195 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:34:49,195 DEBUG HqlParser:96 - <----------- expression
  18:34:49,195 DEBUG HqlParser:96 - <--------- logicalExpression
  18:34:49,195 DEBUG HqlParser:96 - <------- whereClause
  18:34:49,195 DEBUG HqlParser:96 - <----- queryRule
  18:34:49,195 DEBUG HqlParser:96 - <--- selectStatement
  18:34:49,195 DEBUG HqlParser:96 - <- statement
  18:34:49,195 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'Category'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'title'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'categoryTitle'

  18:34:49,195 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,195 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:34:49,195 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------------- path
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------------- path
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------- path
  18:34:49,195 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (title [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------------> expr (title [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (title [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------------> identifier (title [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,195 DEBUG HqlSqlWalker:578 - attempting to resolve property [title] as a non-qualified ref
  18:34:49,195 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:34:49,195 DEBUG FromElement:626 - handling property dereference [sample.entity.Category (null) -> title (class)]
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:34:49,195 DEBUG DotNode:613 - getDataType() : title -> org.hibernate.type.StringType@7fc29cb8
  18:34:49,195 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.title -> category0_.title
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:34:49,195 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:34:49,195 DEBUG HqlSqlWalker:186 - -------------------> identifier (categoryTitle [IDENT])
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:34:49,195 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:34:49,195 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:34:49,195 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:34:49,195 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:34:49,211 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) ( where ( = ( category0_.title {synthetic-alias} title ) ? ) ) )
  18:34:49,211 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:34:49,211 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:34:49,211 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:34:49,211 DEBUG HqlSqlWalker:200 - <----- query
  18:34:49,211 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:34:49,211 DEBUG HqlSqlWalker:200 - <- statement
  18:34:49,211 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'category0_.title' {propertyName=title,dereferenceType=ALL,propertyPath=title,path={synthetic-alias}.title,tableAlias=category0_,className=sample.entity.Category,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'title' {originalText=title}
          \-[NAMED_PARAM] ParameterNode: '?' {name=categoryTitle, expectedType=org.hibernate.type.StringType@7fc29cb8}

  18:34:49,211 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,211 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:34:49,211 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:34:49,211 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:34:49,211 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,211 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,211 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,211 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,211 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,211 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,211 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,211 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,211 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,211 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,211 DEBUG SqlGenerator:104 - <----- selectClause
  18:34:49,211 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:34:49,211 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:34:49,211 DEBUG SqlGenerator:104 - <------- fromTable
  18:34:49,211 DEBUG SqlGenerator:104 - <----- from
  18:34:49,211 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:34:49,211 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:34:49,211 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:34:49,211 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:34:49,211 DEBUG SqlGenerator:90 - -------------> expr (category0_.title [DOT])
  18:34:49,211 DEBUG SqlGenerator:90 - ---------------> simpleExpr (category0_.title [DOT])
  18:34:49,211 DEBUG SqlGenerator:90 - -----------------> addrExpr (category0_.title [DOT])
  18:34:49,211 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <------------- expr
  18:34:49,211 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:34:49,211 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:34:49,211 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:34:49,211 DEBUG SqlGenerator:104 - <----------------- parameter
  18:34:49,211 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <------------- expr
  18:34:49,211 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:34:49,211 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <----- whereExpr
  18:34:49,211 DEBUG SqlGenerator:104 - <--- selectStatement
  18:34:49,211 DEBUG SqlGenerator:104 - <- statement
  18:34:49,211 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.Category where title = :categoryTitle
  18:34:49,211 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:34:49,211 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,211 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from Category where title = :categoryTitle)
  18:34:49,211 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,211 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,211 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,211 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,211 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,211 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,211 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,211 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,211 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,211 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:34:49,211 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:34:49,211 DEBUG Printer:106 - listing entities:
  18:34:49,211 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,211 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,211 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,211 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:34:49,211 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,211 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,211 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:34:49,211 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:34:49,211 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,211 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:34:49,211 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,226 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:34:49,226 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,226 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,226 DEBUG Loader:738 - processing result set
  18:34:49,226 DEBUG Loader:743 - result set row: 0
  18:34:49,226 DEBUG LongType:195 - returning '1' as column: id11_
  18:34:49,226 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:34:49,226 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,226 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,226 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,226 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,226 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,226 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,226 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:49,226 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:34:49,226 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:49,226 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:34:49,226 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:49,226 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:34:49,226 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,226 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:49,226 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,242 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:34:49,242 DEBUG StringType:153 - binding 'Must have original joysticks.' to parameter: 1
  18:34:49,242 DEBUG StringType:153 - binding 'Atari 2600 wanted' to parameter: 2
  18:34:49,242 DEBUG LongType:153 - binding '1' to parameter: 3
  18:34:49,242 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,242 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,242 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,242 DEBUG SQL:111 - values identity_val_local()
  18:34:49,242 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,242 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:34:49,242 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,242 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,242 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:34:49,242 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:34:49,242 DEBUG JDBCTransaction:134 - commit
  18:34:49,258 DEBUG SessionImpl:374 - automatically flushing session
  18:34:49,258 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,258 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,258 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,258 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:34:49,258 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,258 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,258 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,258 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [<unreferenced>] (initialized)
  18:34:49,258 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,258 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,258 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:34:49,258 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 3 collections
  18:34:49,258 DEBUG Printer:106 - listing entities:
  18:34:49,258 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,258 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,258 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,258 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:34:49,258 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,258 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,258 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:49,258 DEBUG ConnectionManager:492 - registering flush begin
  18:34:49,258 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:34:49,258 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:34:49,258 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:34:49,258 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,258 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:49,258 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,258 DEBUG LongType:153 - binding '1' to parameter: 1
  18:34:49,273 DEBUG LongType:153 - binding '1' to parameter: 2
  18:34:49,273 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:34:49,273 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,273 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,273 DEBUG ConnectionManager:501 - registering flush end
  18:34:49,273 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:49,273 DEBUG JDBCContext:228 - before transaction completion
  18:34:49,273 DEBUG SessionImpl:562 - before transaction completion
  18:34:49,273 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:49,273 DEBUG JDBCContext:242 - after transaction completion
  18:34:49,273 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:49,273 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,273 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,273 DEBUG SessionImpl:592 - after transaction completion
  18:34:49,273 DEBUG JDBCTransaction:82 - begin
  18:34:49,273 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,273 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,273 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,273 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,273 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,273 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,273 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,273 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,273 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,273 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,273 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,273 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,273 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,273 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,273 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,273 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,273 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,273 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:34:49,273 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:34:49,273 DEBUG Printer:106 - listing entities:
  18:34:49,273 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,273 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,273 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,273 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:34:49,273 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,273 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,273 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,273 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:34:49,273 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:34:49,273 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,273 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:34:49,273 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,273 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:34:49,273 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,273 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,273 DEBUG Loader:738 - processing result set
  18:34:49,273 DEBUG Loader:743 - result set row: 0
  18:34:49,273 DEBUG LongType:195 - returning '2' as column: id12_
  18:34:49,273 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:34:49,273 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,273 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,273 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,273 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,273 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,273 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,273 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,289 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,289 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,289 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,289 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,289 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,289 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,289 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,289 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,289 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,289 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,289 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:34:49,289 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:34:49,289 DEBUG Printer:106 - listing entities:
  18:34:49,289 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,289 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,289 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,289 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:34:49,289 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,289 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,289 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,289 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:34:49,289 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:34:49,289 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,289 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:34:49,289 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,289 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:34:49,289 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,289 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,289 DEBUG Loader:738 - processing result set
  18:34:49,289 DEBUG Loader:743 - result set row: 0
  18:34:49,289 DEBUG LongType:195 - returning '1' as column: id11_
  18:34:49,289 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:34:49,289 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,289 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,289 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,289 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,289 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,289 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,289 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:49,289 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:34:49,289 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:49,289 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:34:49,289 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:49,289 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:34:49,289 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,289 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:49,289 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,289 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:34:49,289 DEBUG StringType:153 - binding '48k original box and packaging' to parameter: 1
  18:34:49,289 DEBUG StringType:153 - binding 'Sinclair Spectrum for sale' to parameter: 2
  18:34:49,289 DEBUG LongType:153 - binding '2' to parameter: 3
  18:34:49,304 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,304 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,304 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,304 DEBUG SQL:111 - values identity_val_local()
  18:34:49,304 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,304 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:34:49,304 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,304 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,304 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:34:49,304 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:34:49,304 DEBUG JDBCTransaction:134 - commit
  18:34:49,304 DEBUG SessionImpl:374 - automatically flushing session
  18:34:49,304 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,304 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,304 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,304 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:34:49,304 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,304 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,304 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,304 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,304 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [<unreferenced>] (initialized)
  18:34:49,304 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,304 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,304 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:34:49,304 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 4 collections
  18:34:49,304 DEBUG Printer:106 - listing entities:
  18:34:49,304 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,304 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,304 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,304 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,304 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,304 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,304 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,304 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:49,304 DEBUG ConnectionManager:492 - registering flush begin
  18:34:49,304 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:34:49,304 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:34:49,304 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:34:49,304 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,304 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:49,304 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,304 DEBUG LongType:153 - binding '1' to parameter: 1
  18:34:49,304 DEBUG LongType:153 - binding '2' to parameter: 2
  18:34:49,304 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:34:49,304 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,304 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,304 DEBUG ConnectionManager:501 - registering flush end
  18:34:49,304 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:49,304 DEBUG JDBCContext:228 - before transaction completion
  18:34:49,304 DEBUG SessionImpl:562 - before transaction completion
  18:34:49,304 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:49,304 DEBUG JDBCContext:242 - after transaction completion
  18:34:49,304 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:49,304 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,304 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,304 DEBUG SessionImpl:592 - after transaction completion
  18:34:49,304 DEBUG JDBCTransaction:82 - begin
  18:34:49,304 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,304 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,304 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,304 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,304 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,304 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,304 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,304 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,304 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,304 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,304 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,304 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,304 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,320 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,320 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,320 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:34:49,320 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:34:49,320 DEBUG Printer:106 - listing entities:
  18:34:49,320 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,320 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,320 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:34:49,320 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:34:49,320 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,320 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:34:49,320 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,320 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:34:49,320 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,320 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,320 DEBUG Loader:738 - processing result set
  18:34:49,320 DEBUG Loader:743 - result set row: 0
  18:34:49,320 DEBUG LongType:195 - returning '2' as column: id12_
  18:34:49,320 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:34:49,320 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,320 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,320 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,320 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,320 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,320 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,320 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,320 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,320 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,320 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,320 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,320 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,320 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,320 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,320 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,320 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:34:49,320 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:34:49,320 DEBUG Printer:106 - listing entities:
  18:34:49,320 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,320 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,320 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,320 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,320 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:34:49,320 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:34:49,320 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,320 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:34:49,320 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,320 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:34:49,320 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,320 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,320 DEBUG Loader:738 - processing result set
  18:34:49,320 DEBUG Loader:743 - result set row: 0
  18:34:49,320 DEBUG LongType:195 - returning '2' as column: id11_
  18:34:49,320 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:34:49,320 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,320 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,320 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,320 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,320 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,320 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,320 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:49,320 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:34:49,320 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:49,320 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:34:49,320 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:49,320 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:34:49,320 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,320 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:49,320 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,320 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:34:49,320 DEBUG StringType:153 - binding 'Kitten and puppies design' to parameter: 1
  18:34:49,320 DEBUG StringType:153 - binding 'Commemorative Plates' to parameter: 2
  18:34:49,320 DEBUG LongType:153 - binding '2' to parameter: 3
  18:34:49,336 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,336 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,336 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,336 DEBUG SQL:111 - values identity_val_local()
  18:34:49,336 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,336 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:34:49,336 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,336 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,336 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:34:49,336 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:34:49,336 DEBUG JDBCTransaction:134 - commit
  18:34:49,336 DEBUG SessionImpl:374 - automatically flushing session
  18:34:49,336 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,336 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,336 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,336 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:34:49,336 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,336 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,336 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,336 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,336 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,336 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [<unreferenced>] (initialized)
  18:34:49,336 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,336 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,336 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:34:49,336 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 5 collections
  18:34:49,336 DEBUG Printer:106 - listing entities:
  18:34:49,336 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,336 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:34:49,336 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,336 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,336 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,336 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,336 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,336 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,336 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:49,336 DEBUG ConnectionManager:492 - registering flush begin
  18:34:49,336 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:34:49,336 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:34:49,336 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:34:49,336 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,336 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:49,336 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,336 DEBUG LongType:153 - binding '2' to parameter: 1
  18:34:49,336 DEBUG LongType:153 - binding '3' to parameter: 2
  18:34:49,336 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:34:49,336 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,336 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,336 DEBUG ConnectionManager:501 - registering flush end
  18:34:49,336 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:49,336 DEBUG JDBCContext:228 - before transaction completion
  18:34:49,336 DEBUG SessionImpl:562 - before transaction completion
  18:34:49,336 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:49,336 DEBUG JDBCContext:242 - after transaction completion
  18:34:49,336 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:49,336 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,336 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,336 DEBUG SessionImpl:592 - after transaction completion
  18:34:49,336 DEBUG JDBCTransaction:82 - begin
  18:34:49,336 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,336 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,336 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,336 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,336 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,336 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,336 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,336 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:34:49,336 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,351 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,351 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,351 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:34:49,351 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,351 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,351 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:34:49,351 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:34:49,351 DEBUG Printer:106 - listing entities:
  18:34:49,351 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,351 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,351 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:34:49,351 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:34:49,351 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,351 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:34:49,351 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,351 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:34:49,351 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,351 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,351 DEBUG Loader:738 - processing result set
  18:34:49,351 DEBUG Loader:743 - result set row: 0
  18:34:49,351 DEBUG LongType:195 - returning '1' as column: id12_
  18:34:49,351 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:34:49,351 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,351 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,351 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,351 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,351 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,351 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,351 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,351 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:34:49,351 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,351 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,351 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,351 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,351 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:34:49,351 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,351 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,351 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:34:49,351 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:34:49,351 DEBUG Printer:106 - listing entities:
  18:34:49,351 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,351 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,351 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,351 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,351 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:34:49,351 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:34:49,351 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,351 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:34:49,351 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,351 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:34:49,351 DEBUG Loader:1647 - Bound [2] parameters total
  18:34:49,351 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,351 DEBUG Loader:738 - processing result set
  18:34:49,351 DEBUG Loader:743 - result set row: 0
  18:34:49,351 DEBUG LongType:195 - returning '2' as column: id11_
  18:34:49,351 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:34:49,351 DEBUG Loader:765 - done processing result set (1 rows)
  18:34:49,351 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,367 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,367 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,367 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,367 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,367 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:34:49,367 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:34:49,367 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:34:49,367 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:34:49,367 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:34:49,367 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:34:49,367 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,367 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:34:49,367 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,367 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:34:49,367 DEBUG StringType:153 - binding 'Leopard skin pattern. Nice.' to parameter: 1
  18:34:49,367 DEBUG StringType:153 - binding 'Inflatable Sofa' to parameter: 2
  18:34:49,367 DEBUG LongType:153 - binding '1' to parameter: 3
  18:34:49,367 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,367 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,367 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,367 DEBUG SQL:111 - values identity_val_local()
  18:34:49,367 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,367 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 4
  18:34:49,367 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,367 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,367 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:34:49,367 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:34:49,367 DEBUG JDBCTransaction:134 - commit
  18:34:49,367 DEBUG SessionImpl:374 - automatically flushing session
  18:34:49,367 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,367 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,367 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,367 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:34:49,367 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:34:49,367 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [<unreferenced>] (initialized)
  18:34:49,367 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,367 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,367 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:34:49,367 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 6 collections
  18:34:49,367 DEBUG Printer:106 - listing entities:
  18:34:49,367 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,367 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:34:49,367 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,367 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,367 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,367 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,367 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,367 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,367 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:34:49,367 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:49,367 DEBUG ConnectionManager:492 - registering flush begin
  18:34:49,367 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:34:49,367 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:34:49,367 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:34:49,367 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,367 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:34:49,367 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,367 DEBUG LongType:153 - binding '2' to parameter: 1
  18:34:49,367 DEBUG LongType:153 - binding '4' to parameter: 2
  18:34:49,367 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:34:49,367 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,367 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,367 DEBUG ConnectionManager:501 - registering flush end
  18:34:49,367 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:49,367 DEBUG JDBCContext:228 - before transaction completion
  18:34:49,367 DEBUG SessionImpl:562 - before transaction completion
  18:34:49,367 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:49,367 DEBUG JDBCContext:242 - after transaction completion
  18:34:49,367 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:49,367 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,367 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,367 DEBUG SessionImpl:592 - after transaction completion
  18:34:49,367 DEBUG SessionImpl:310 - closing session
  18:34:49,382 DEBUG ConnectionManager:403 - performing cleanup
  18:34:49,382 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,382 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,382 DEBUG SessionImpl:257 - opened session at timestamp: 14176118893
  18:34:49,382 DEBUG JDBCTransaction:82 - begin
  18:34:49,382 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,382 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,382 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,382 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,382 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,382 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,382 DEBUG JDBCTransaction:82 - begin
  18:34:49,382 DEBUG ConnectionManager:444 - opening JDBC connection
  18:34:49,382 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:34:49,382 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:34:49,382 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:34:49,382 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:34:49,382 DEBUG JDBCContext:237 - after transaction begin
  18:34:49,382 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating (from Category)
  18:34:49,382 DEBUG QueryTranslatorImpl:272 - parse() - HQL: from sample.entity.Category
  18:34:49,382 DEBUG HqlParser:88 - -> statement
  18:34:49,382 DEBUG HqlParser:88 - ---> selectStatement
  18:34:49,382 DEBUG HqlParser:88 - -----> queryRule
  18:34:49,382 DEBUG HqlParser:88 - -------> selectFrom
  18:34:49,382 DEBUG HqlParser:88 - ---------> fromClause
  18:34:49,382 DEBUG HqlParser:88 - -----------> fromRange
  18:34:49,382 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:34:49,382 DEBUG HqlParser:88 - ---------------> path
  18:34:49,382 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,382 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,382 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,382 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,382 DEBUG HqlParser:88 - -----------------> identifier
  18:34:49,382 DEBUG HqlParser:96 - <----------------- identifier
  18:34:49,382 DEBUG HqlParser:96 - <--------------- path
  18:34:49,382 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:34:49,382 DEBUG HqlParser:96 - <----------- fromRange
  18:34:49,382 DEBUG HqlParser:96 - <--------- fromClause
  18:34:49,382 DEBUG HqlParser:96 - <------- selectFrom
  18:34:49,382 DEBUG HqlParser:96 - <----- queryRule
  18:34:49,382 DEBUG HqlParser:96 - <--- selectStatement
  18:34:49,382 DEBUG HqlParser:96 - <- statement
  18:34:49,382 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    \-[SELECT_FROM] Node: 'SELECT_FROM'
       \-[FROM] Node: 'from'
          \-[RANGE] Node: 'RANGE'
             \-[DOT] Node: '.'
                +-[DOT] Node: '.'
                |  +-[IDENT] Node: 'sample'
                |  \-[IDENT] Node: 'entity'
                \-[IDENT] Node: 'Category'

  18:34:49,382 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,382 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:34:49,382 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:34:49,382 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:34:49,382 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:34:49,382 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:34:49,382 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:34:49,382 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:34:49,382 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:34:49,382 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:34:49,382 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:34:49,382 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:34:49,382 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:34:49,382 DEBUG HqlSqlWalker:200 - <----------------- path
  18:34:49,382 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:34:49,382 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:34:49,382 DEBUG HqlSqlWalker:200 - <--------------- path
  18:34:49,382 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:34:49,382 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:34:49,382 DEBUG HqlSqlWalker:200 - <------------- path
  18:34:49,398 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:34:49,398 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:34:49,398 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:34:49,398 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:34:49,398 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:34:49,398 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) )
  18:34:49,398 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:34:49,398 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:34:49,398 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:34:49,398 DEBUG HqlSqlWalker:200 - <----- query
  18:34:49,398 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:34:49,398 DEBUG HqlSqlWalker:200 - <- statement
  18:34:49,398 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    \-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
       \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}

  18:34:49,398 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,398 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:34:49,398 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:34:49,398 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:34:49,398 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,398 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,398 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:34:49,398 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,398 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,398 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,398 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,398 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,398 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:34:49,398 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:34:49,398 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:34:49,398 DEBUG SqlGenerator:104 - <------- selectColumn
  18:34:49,398 DEBUG SqlGenerator:104 - <----- selectClause
  18:34:49,398 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:34:49,398 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:34:49,398 DEBUG SqlGenerator:104 - <------- fromTable
  18:34:49,398 DEBUG SqlGenerator:104 - <----- from
  18:34:49,398 DEBUG SqlGenerator:104 - <--- selectStatement
  18:34:49,398 DEBUG SqlGenerator:104 - <- statement
  18:34:49,398 DEBUG QueryTranslatorImpl:241 - HQL: from sample.entity.Category
  18:34:49,398 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_
  18:34:49,398 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:34:49,398 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills (from Category)
  18:34:49,398 DEBUG QueryPlanCache:102 - located HQL query plan in cache (from Category)
  18:34:49,398 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,398 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,398 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,398 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:34:49,398 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [sample.entity.Advert.categories#4] (initialized)
  18:34:49,398 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,398 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,398 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:34:49,398 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 6 collections
  18:34:49,398 DEBUG Printer:106 - listing entities:
  18:34:49,398 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,398 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:34:49,398 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,398 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,398 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,398 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,398 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,398 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,398 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:34:49,398 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:34:49,398 DEBUG HQLQueryPlan:174 - find: from Category
  18:34:49,398 DEBUG QueryParameters:288 - named parameters: {}
  18:34:49,398 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:34:49,398 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_
  18:34:49,398 DEBUG AbstractBatcher:513 - preparing statement
  18:34:49,398 DEBUG Loader:1647 - Bound [1] parameters total
  18:34:49,398 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:34:49,414 DEBUG Loader:738 - processing result set
  18:34:49,414 DEBUG Loader:743 - result set row: 0
  18:34:49,414 DEBUG LongType:195 - returning '1' as column: id11_
  18:34:49,414 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:34:49,414 DEBUG Loader:743 - result set row: 1
  18:34:49,414 DEBUG LongType:195 - returning '2' as column: id11_
  18:34:49,414 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:34:49,414 DEBUG Loader:765 - done processing result set (2 rows)
  18:34:49,414 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:34:49,414 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:34:49,414 DEBUG AbstractBatcher:562 - closing statement
  18:34:49,414 DEBUG Loader:895 - total objects hydrated: 0
  18:34:49,414 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:34:49,414 DEBUG JDBCTransaction:134 - commit
  18:34:49,414 DEBUG SessionImpl:374 - automatically flushing session
  18:34:49,414 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:34:49,414 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:34:49,414 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:34:49,414 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:34:49,414 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [sample.entity.Advert.categories#4] (initialized)
  18:34:49,414 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:34:49,414 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:34:49,414 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:34:49,414 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 6 collections
  18:34:49,414 DEBUG Printer:106 - listing entities:
  18:34:49,414 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:34:49,414 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:34:49,414 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:34:49,414 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:34:49,414 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:34:49,414 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:34:49,414 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:34:49,414 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:34:49,414 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:34:49,414 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:34:49,414 DEBUG ConnectionManager:492 - registering flush begin
  18:34:49,414 DEBUG ConnectionManager:501 - registering flush end
  18:34:49,414 DEBUG AbstractFlushingEventListener:344 - post flush
  18:34:49,414 DEBUG JDBCContext:228 - before transaction completion
  18:34:49,414 DEBUG SessionImpl:562 - before transaction completion
  18:34:49,414 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:34:49,414 DEBUG JDBCContext:242 - after transaction completion
  18:34:49,414 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:34:49,414 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,414 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,414 DEBUG SessionImpl:592 - after transaction completion
  18:34:49,414 DEBUG SessionImpl:310 - closing session
  18:34:49,414 DEBUG ConnectionManager:403 - performing cleanup
  18:34:49,414 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:34:49,414 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:34:49,414  INFO SessionFactoryImpl:938 - closing
  18:34:49,414  INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:derby:firstdb
  18:36:00,589  INFO Version:43 - Hibernate Annotations 3.5.3-Final
  18:36:00,604  INFO Environment:570 - Hibernate 3.5.3-Final
  18:36:00,604  INFO Environment:603 - hibernate.properties not found
  18:36:00,604  INFO Environment:781 - Bytecode provider name : javassist
  18:36:00,604  INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
  18:36:00,667 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:36:00,667 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:36:00,667 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:36:00,683 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:36:00,698 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:36:00,698 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:36:00,698 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:36:00,698  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
  18:36:00,698  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:36:00,714  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:36:00,745 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:36:00,745 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:36:00,745 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:36:00,745 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:36:00,776 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:36:00,776 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:36:00,776 DEBUG Configuration:1479 - hibernate.connection.username=
  18:36:00,776 DEBUG Configuration:1479 - hibernate.connection.password=
  18:36:00,776 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:36:00,776 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:36:00,776 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:36:00,776 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:36:00,776 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@68c04835 [Attribute: name class value "sample.entity.Message"]
  18:36:00,792 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@183e1ad [Attribute: name class value "sample.entity.Advert"]
  18:36:00,792 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@3c5de5e6 [Attribute: name class value "sample.entity.Category"]
  18:36:00,792 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@99a6440 [Attribute: name class value "sample.entity.User"]
  18:36:00,792  INFO Configuration:1633 - Configured SessionFactory: null
  18:36:00,792 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50903 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-492261546\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:36:00,792 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:36:00,792 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:36:00,792  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:36:00,792 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:36:00,792 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:00,823 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:00,839 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:00,839  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:36:00,854 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:00,854 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:00,870 DEBUG EntityBinder:338 - Import with entity name Message
  18:36:00,870  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:36:00,885 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:36:00,901 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:00,901 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:00,901 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:00,901 DEBUG PropertyBinder:254 - Building property id
  18:36:00,901 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:00,901 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:00,901 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:36:00,901 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:36:00,917 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:36:00,917 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:36:00,917 DEBUG PropertyBinder:254 - Building property messageText
  18:36:00,917 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:36:00,917  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:36:00,917 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:00,917 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:00,917 DEBUG EntityBinder:338 - Import with entity name Advert
  18:36:00,917  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:36:00,917 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:36:00,932 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:00,932 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:00,932 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:00,932 DEBUG PropertyBinder:254 - Building property id
  18:36:00,932 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:00,932 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:00,932 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:36:00,932 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:36:00,932 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:36:00,948 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:36:00,948 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:36:00,948 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:36:00,948 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:36:00,948 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:36:00,948 DEBUG PropertyBinder:254 - Building property categories
  18:36:00,948 DEBUG PropertyBinder:311 - Cascading categories with none
  18:36:00,948 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:36:00,948 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:36:00,948 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:36:00,948 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:36:00,963 DEBUG PropertyBinder:254 - Building property message
  18:36:00,963 DEBUG PropertyBinder:311 - Cascading message with null
  18:36:00,963 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:36:00,963 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:36:00,963 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:36:00,963 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:36:00,963 DEBUG PropertyBinder:254 - Building property title
  18:36:00,963 DEBUG PropertyBinder:311 - Cascading title with null
  18:36:00,963 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:36:00,963 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:36:00,963 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:36:00,963 DEBUG PropertyBinder:254 - Building property user
  18:36:00,963 DEBUG PropertyBinder:311 - Cascading user with none
  18:36:00,963  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:36:00,963 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:00,963 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:00,963 DEBUG EntityBinder:338 - Import with entity name Category
  18:36:00,963  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:36:00,979 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:00,979 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:00,979 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:00,979 DEBUG PropertyBinder:254 - Building property id
  18:36:00,979 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:00,979 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:00,979 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:36:00,979 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:36:00,979 DEBUG PropertyBinder:254 - Building property adverts
  18:36:00,979 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:36:00,979 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:36:00,979 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:36:00,979 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:36:00,979 DEBUG PropertyBinder:254 - Building property title
  18:36:00,979 DEBUG PropertyBinder:311 - Cascading title with null
  18:36:00,979  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:36:00,979 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:00,979 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:00,995 DEBUG EntityBinder:338 - Import with entity name User
  18:36:00,995  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:36:00,995 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:36:00,995 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:00,995 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:00,995 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:00,995 DEBUG PropertyBinder:254 - Building property id
  18:36:00,995 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:00,995 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:00,995 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:36:00,995 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:36:00,995 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:36:00,995 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:36:00,995 DEBUG PropertyBinder:254 - Building property name
  18:36:00,995 DEBUG PropertyBinder:311 - Cascading name with null
  18:36:00,995 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:36:00,995 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:36:00,995 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:36:00,995 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:36:00,995 DEBUG PropertyBinder:254 - Building property password
  18:36:00,995 DEBUG PropertyBinder:311 - Cascading password with null
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:36:00,995 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:36:00,995 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:01,041 DEBUG Configuration:1211 - processing extends queue
  18:36:01,041 DEBUG Configuration:1215 - processing collection mappings
  18:36:01,041 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:36:01,041 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:36:01,041 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:36:01,041 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:36:01,041 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:36:01,041 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:36:01,041 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:36:01,041 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:01,041 DEBUG Configuration:1234 - processing association property references
  18:36:01,041 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:01,041 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:01,041 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:01,041 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:01,041  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:36:01,042  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:36:01,042  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:36:01,042  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:36:01,292  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:36:01,308  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:36:01,308 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:01,308 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:01,948 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:01,948  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:36:01,948  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:36:01,963  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:36:01,979 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:36:01,979 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:01,979  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:36:01,979  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:36:01,979  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:36:01,979  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:36:01,979  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:36:01,979 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:36:01,979  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:36:01,979  INFO SettingsFactory:204 - Connection release mode: auto
  18:36:01,979  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:36:01,979  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:36:01,979  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:36:01,995  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:36:01,995  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:36:01,995  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:36:01,995  INFO SettingsFactory:251 - Query language substitutions: {}
  18:36:01,995  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:36:01,995  INFO SettingsFactory:261 - Second-level cache: enabled
  18:36:01,995  INFO SettingsFactory:265 - Query cache: disabled
  18:36:01,995  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:36:01,995  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:36:01,995  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:36:01,995 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:36:01,995  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:36:01,995  INFO SettingsFactory:313 - Statistics: disabled
  18:36:01,995  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:36:01,995  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:36:01,995  INFO SettingsFactory:336 - Named query checking : enabled
  18:36:01,995  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:36:02,041  INFO SessionFactoryImpl:199 - building session factory
  18:36:02,041 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:36:02,041 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:36:02,057 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:36:02,057 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50903 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-492261546\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:36:02,058 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,058 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,058 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,058 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,167 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:36:02,167 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,167 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,183 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:36:02,183 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:36:02,183 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title2_ from Category category_ where category_.id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:36:02,183 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,183 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,183 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:36:02,183 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:36:02,183 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message1_, advert_.title as title1_, advert_.aduser as aduser1_ from Advert advert_ where advert_.id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:36:02,183 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:36:02,183 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:02,198 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,198 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@56f5a599], incoming type = [org.hibernate.type.IntegerType@56f5a599]
  18:36:02,198 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:36:02,198 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:36:02,198 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_0_ from Message message_ where message_.id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:36:02,198 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:36:02,198 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,198 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,198 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,198 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:36:02,198 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:36:02,198 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name3_, user_.password as password3_ from AdUser user_ where user_.id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:36:02,198 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:36:02,198 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:36:02,198 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:36:02,198 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:02,198 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:36:02,198 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:36:02,198 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:36:02,198 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:36:02,198 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:36:02,198 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:36:02,198 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:36:02,198 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for read only with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,214 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for read only with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,230 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,245 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,245 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,245 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  18:36:02,245 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_2_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id1_0_, advert1_.message as message1_0_, advert1_.title as title1_0_, advert1_.aduser as aduser1_0_, user2_.id as id3_1_, user2_.name as name3_1_, user2_.password as password3_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:36:02,245 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_1_1_, categories0_.categories_id as categories1_1_, category1_.id as id2_0_, category1_.title as title2_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:36:02,245 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
  18:36:02,245 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1041e1014a1041e7850000 (unnamed)
  18:36:02,245  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:36:02,245 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:36:02,245 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:02,245 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:02,245 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:02,245 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:02,245 DEBUG Configuration:1211 - processing extends queue
  18:36:02,245 DEBUG Configuration:1215 - processing collection mappings
  18:36:02,245 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:02,245 DEBUG Configuration:1234 - processing association property references
  18:36:02,245 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:02,245 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,245 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,245 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,245 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,245 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:02,245 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:02,245 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:02,245 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:02,245 DEBUG Configuration:1211 - processing extends queue
  18:36:02,245 DEBUG Configuration:1215 - processing collection mappings
  18:36:02,245 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:02,245 DEBUG Configuration:1234 - processing association property references
  18:36:02,245 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:02,245 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,261  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:36:02,261 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:36:02,261  INFO SchemaExport:251 - exporting generated schema to database
  18:36:02,261 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:02,261 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:02,261 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:02,261 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:36:02,433 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:36:02,448 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:36:02,464 DEBUG SchemaExport:377 - drop table AdUser
  18:36:02,495 DEBUG SchemaExport:377 - drop table Advert
  18:36:02,526 DEBUG SchemaExport:377 - drop table Category
  18:36:02,542 DEBUG SchemaExport:377 - drop table Message
  18:36:02,557 DEBUG SchemaExport:377 - drop table link_category_advert
  18:36:02,589 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:36:02,635 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:36:02,651 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:36:02,667 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:36:02,682 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:36:02,698 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:36:02,729 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:36:02,760 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:36:02,776  INFO SchemaExport:268 - schema export complete
  18:36:02,776 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:02,776 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:36:02,776 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:36:02,807 DEBUG SessionImpl:257 - opened session at timestamp: 14176119627
  18:36:02,823 DEBUG JDBCTransaction:82 - begin
  18:36:02,823 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:02,823 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:02,823 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:02,823 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:02,823 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:02,823 DEBUG JDBCContext:237 - after transaction begin
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  18:36:02,823 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  18:36:02,823  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  18:36:02,823  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  18:36:02,823 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  18:36:02,823 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  18:36:02,823 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  18:36:02,838 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  18:36:02,838 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:derby:firstdb
  18:36:02,838 DEBUG Configuration:1479 - hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver
  18:36:02,838 DEBUG Configuration:1479 - hibernate.connection.username=
  18:36:02,838 DEBUG Configuration:1479 - hibernate.connection.password=
  18:36:02,838 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  18:36:02,838 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.DerbyDialect
  18:36:02,838 DEBUG Configuration:1479 - hibernate.show_sql=true
  18:36:02,838 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  18:36:02,838 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@41c3d796 [Attribute: name class value "sample.entity.Message"]
  18:36:02,838 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@68407cdd [Attribute: name class value "sample.entity.Advert"]
  18:36:02,838 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@7f74297a [Attribute: name class value "sample.entity.Category"]
  18:36:02,838 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@2a8085ef [Attribute: name class value "sample.entity.User"]
  18:36:02,838  INFO Configuration:1633 - Configured SessionFactory: null
  18:36:02,838 DEBUG Configuration:1634 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50903 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-492261546\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.DerbyDialect, hibernate.connection.url=jdbc:derby:firstdb, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:36:02,838 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  18:36:02,838 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  18:36:02,838  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  18:36:02,838 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  18:36:02,838 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:02,838 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:02,838 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:02,838  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  18:36:02,838 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:02,838 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:02,838 DEBUG EntityBinder:338 - Import with entity name Message
  18:36:02,838  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  18:36:02,838 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  18:36:02,838 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:02,838 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:02,838 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:02,838 DEBUG PropertyBinder:254 - Building property id
  18:36:02,838 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:02,838 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:02,838 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  18:36:02,838 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  18:36:02,838 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  18:36:02,838 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  18:36:02,838 DEBUG PropertyBinder:254 - Building property messageText
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading messageText with null
  18:36:02,854  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:02,854 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:02,854 DEBUG EntityBinder:338 - Import with entity name Advert
  18:36:02,854  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:02,854 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:02,854 DEBUG PropertyBinder:254 - Building property id
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:02,854 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  18:36:02,854 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  18:36:02,854 DEBUG PropertyBinder:254 - Building property categories
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading categories with none
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG PropertyBinder:175 - binding property message with lazy=false
  18:36:02,854 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  18:36:02,854 DEBUG PropertyBinder:254 - Building property message
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading message with null
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:36:02,854 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:36:02,854 DEBUG PropertyBinder:254 - Building property title
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading title with null
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG PropertyBinder:254 - Building property user
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading user with none
  18:36:02,854  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:02,854 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:02,854 DEBUG EntityBinder:338 - Import with entity name Category
  18:36:02,854  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  18:36:02,854 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  18:36:02,854 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:02,854 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:02,854 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:02,854 DEBUG PropertyBinder:254 - Building property id
  18:36:02,854 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:02,870 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:02,870 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  18:36:02,870 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  18:36:02,870 DEBUG PropertyBinder:254 - Building property adverts
  18:36:02,870 DEBUG PropertyBinder:311 - Cascading adverts with none
  18:36:02,870 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  18:36:02,870 DEBUG PropertyBinder:175 - binding property title with lazy=false
  18:36:02,870 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  18:36:02,870 DEBUG PropertyBinder:254 - Building property title
  18:36:02,870 DEBUG PropertyBinder:311 - Cascading title with null
  18:36:02,870  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  18:36:02,870 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  18:36:02,870 DEBUG EntityBinder:338 - Import with entity name User
  18:36:02,870  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  18:36:02,870 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  18:36:02,870 DEBUG PropertyBinder:175 - binding property id with lazy=false
  18:36:02,870 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  18:36:02,870 DEBUG PropertyBinder:254 - Building property id
  18:36:02,870 DEBUG PropertyBinder:311 - Cascading id with null
  18:36:02,870 DEBUG AnnotationBinder:2095 - Bind @Id on id
  18:36:02,870 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  18:36:02,870 DEBUG PropertyBinder:175 - binding property name with lazy=false
  18:36:02,870 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  18:36:02,870 DEBUG PropertyBinder:254 - Building property name
  18:36:02,870 DEBUG PropertyBinder:311 - Cascading name with null
  18:36:02,870 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  18:36:02,870 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  18:36:02,870 DEBUG PropertyBinder:175 - binding property password with lazy=false
  18:36:02,870 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  18:36:02,870 DEBUG PropertyBinder:254 - Building property password
  18:36:02,870 DEBUG PropertyBinder:311 - Cascading password with null
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  18:36:02,870 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  18:36:02,870 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:02,870 DEBUG Configuration:1211 - processing extends queue
  18:36:02,870 DEBUG Configuration:1215 - processing collection mappings
  18:36:02,870 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  18:36:02,870 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  18:36:02,870 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  18:36:02,870 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  18:36:02,870 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  18:36:02,870 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  18:36:02,870 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  18:36:02,870 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:02,870 DEBUG Configuration:1234 - processing association property references
  18:36:02,870 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:02,870 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:02,870 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:02,870 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:02,870  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  18:36:02,885  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  18:36:02,885  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  18:36:02,885  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  18:36:02,885  INFO DriverManagerConnectionProvider:103 - using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:firstdb
  18:36:02,885  INFO DriverManagerConnectionProvider:106 - connection properties: {user=, password=}
  18:36:02,885 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:02,885 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:02,885 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:02,885  INFO SettingsFactory:117 - RDBMS: Apache Derby, version: 10.10.1.3 - (1557168)
  18:36:02,885  INFO SettingsFactory:118 - JDBC driver: Apache Derby Embedded JDBC Driver, version: 10.10.1.3 - (1557168)
  18:36:02,885  INFO Dialect:206 - Using dialect: org.hibernate.dialect.DerbyDialect
  18:36:02,885 DEBUG JdbcSupportLoader:103 - Unable to free CLOB created to test createClob() implementation : java.lang.IllegalAccessException: Class org.hibernate.engine.jdbc.JdbcSupportLoader can not access a member of class org.apache.derby.impl.jdbc.EmbedClob with modifiers "public"
  18:36:02,885 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:02,885  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  18:36:02,885  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  18:36:02,885  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  18:36:02,885  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  18:36:02,885  INFO SettingsFactory:188 - Scrollable result sets: enabled
  18:36:02,885 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  18:36:02,885  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): disabled
  18:36:02,885  INFO SettingsFactory:204 - Connection release mode: auto
  18:36:02,885  INFO SettingsFactory:231 - Default batch fetch size: 1
  18:36:02,885  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  18:36:02,885  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  18:36:02,885  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  18:36:02,885  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  18:36:02,885  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  18:36:02,885  INFO SettingsFactory:251 - Query language substitutions: {}
  18:36:02,885  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  18:36:02,885  INFO SettingsFactory:261 - Second-level cache: enabled
  18:36:02,885  INFO SettingsFactory:265 - Query cache: disabled
  18:36:02,885  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  18:36:02,885  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  18:36:02,885  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  18:36:02,885 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  18:36:02,885  INFO SettingsFactory:304 - Echoing all SQL to stdout
  18:36:02,885  INFO SettingsFactory:313 - Statistics: disabled
  18:36:02,885  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  18:36:02,885  INFO SettingsFactory:332 - Default entity-mode: pojo
  18:36:02,885  INFO SettingsFactory:336 - Named query checking : enabled
  18:36:02,885  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  18:36:02,901  INFO SessionFactoryImpl:199 - building session factory
  18:36:02,901 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  18:36:02,901 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  18:36:02,901 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  18:36:02,901 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=org.apache.derby.jdbc.EmbeddedDriver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50903 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-492261546\testng-customsuite.xml, hibernate.connection.url=jdbc:derby:firstdb, hibernate.dialect=org.hibernate.dialect.DerbyDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  18:36:02,901 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,901 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,901 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,901 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  18:36:02,901 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  18:36:02,901 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title11_ from Category category_ where category_.id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  18:36:02,901 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (id, title) values (default, ?)
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  18:36:02,901 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  18:36:02,901 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message10_, advert_.title as title10_, advert_.aduser as aduser10_ from Advert advert_ where advert_.id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  18:36:02,901 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@56f5a599], incoming type = [org.hibernate.type.IntegerType@56f5a599]
  18:36:02,901 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  18:36:02,901 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  18:36:02,901 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_9_ from Message message_ where message_.id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  18:36:02,901 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (id, messageText) values (default, ?)
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@52baae9d], incoming type = [org.hibernate.type.StringType@52baae9d]
  18:36:02,901 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@7f6dbfd4], incoming type = [org.hibernate.type.LongType@7f6dbfd4]
  18:36:02,901 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  18:36:02,901 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  18:36:02,901 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name12_, user_.password as password12_ from AdUser user_ where user_.id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  18:36:02,901 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  18:36:02,901 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (id, name, password) values (default, ?, ?)
  18:36:02,901 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  18:36:02,916 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:02,916 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  18:36:02,916 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  18:36:02,916 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  18:36:02,916 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  18:36:02,916 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  18:36:02,916 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  18:36:02,916 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  18:36:02,916 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for read only with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id11_0_, category0_.title as title11_0_ from Category category0_ where category0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for read only with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id10_1_, advert0_.message as message10_1_, advert0_.title as title10_1_, advert0_.aduser as aduser10_1_, user1_.id as id12_0_, user1_.name as name12_0_, user1_.password as password12_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id10_0_, advert0_.message as message10_0_, advert0_.title as title10_0_, advert0_.aduser as aduser10_0_ from Advert advert0_ where advert0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for read only with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id9_0_, message0_.messageText as messageT2_9_0_ from Message message0_ where message0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for read only with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=? for update with rs
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id12_0_, user0_.name as name12_0_, user0_.password as password12_0_ from AdUser user0_ where user0_.id=?
  18:36:02,916 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_11_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id10_0_, advert1_.message as message10_0_, advert1_.title as title10_0_, advert1_.aduser as aduser10_0_, user2_.id as id12_1_, user2_.name as name12_1_, user2_.password as password12_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  18:36:02,916 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_10_1_, categories0_.categories_id as categories1_1_, category1_.id as id11_0_, category1_.title as title11_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  18:36:02,916 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a1041e1014a1041ea240001 (unnamed)
  18:36:02,916  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  18:36:02,916 DEBUG SessionFactoryImpl:378 - instantiated session factory
  18:36:02,916 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:02,916 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:02,916 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:02,916 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:02,916 DEBUG Configuration:1211 - processing extends queue
  18:36:02,916 DEBUG Configuration:1215 - processing collection mappings
  18:36:02,916 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:02,916 DEBUG Configuration:1234 - processing association property references
  18:36:02,916 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:02,916 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:02,916 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:02,932 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  18:36:02,932 DEBUG AnnotationConfiguration:617 - Process hbm files
  18:36:02,932 DEBUG AnnotationConfiguration:625 - Process annotated classes
  18:36:02,932 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  18:36:02,932 DEBUG Configuration:1211 - processing extends queue
  18:36:02,932 DEBUG Configuration:1215 - processing collection mappings
  18:36:02,932 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  18:36:02,932 DEBUG Configuration:1234 - processing association property references
  18:36:02,932 DEBUG Configuration:1256 - processing foreign key constraints
  18:36:02,932 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  18:36:02,932 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  18:36:02,932 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.DerbyDialect]
  18:36:02,932  INFO SchemaExport:226 - Running hbm2ddl schema export
  18:36:02,932 DEBUG SchemaExport:242 - import file not found: /import.sql
  18:36:02,932  INFO SchemaExport:251 - exporting generated schema to database
  18:36:02,932 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:02,932 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:02,932 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:02,932 DEBUG SchemaExport:377 - alter table Advert drop constraint FK74A35BF4F310D740
  18:36:02,948 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F06613C4A3
  18:36:03,010 DEBUG SchemaExport:377 - alter table link_category_advert drop constraint FKA7C387F07F2F2556
  18:36:03,026 DEBUG SchemaExport:377 - drop table AdUser
  18:36:03,041 DEBUG SchemaExport:377 - drop table Advert
  18:36:03,057 DEBUG SchemaExport:377 - drop table Category
  18:36:03,072 DEBUG SchemaExport:377 - drop table Message
  18:36:03,073 DEBUG SchemaExport:377 - drop table link_category_advert
  18:36:03,120 DEBUG SchemaExport:377 - create table AdUser (id bigint generated by default as identity, name varchar(255), password varchar(255), primary key (id))
  18:36:03,136 DEBUG SchemaExport:377 - create table Advert (id bigint generated by default as identity, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  18:36:03,152 DEBUG SchemaExport:377 - create table Category (id bigint generated by default as identity, title varchar(255), primary key (id))
  18:36:03,167 DEBUG SchemaExport:377 - create table Message (id integer generated by default as identity, messageText varchar(255), primary key (id))
  18:36:03,183 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  18:36:03,198 DEBUG SchemaExport:377 - alter table Advert add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser
  18:36:03,214 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category
  18:36:03,230 DEBUG SchemaExport:377 - alter table link_category_advert add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert
  18:36:03,245  INFO SchemaExport:268 - schema export complete
  18:36:03,245 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,245 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  18:36:03,245 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  18:36:03,245 DEBUG SessionImpl:257 - opened session at timestamp: 14176119632
  18:36:03,245 DEBUG JDBCTransaction:82 - begin
  18:36:03,245 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,245 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,245 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,245 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,245 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,245 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,261 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,261 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:36:03,261 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,276 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:36:03,276 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,276 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:36:03,276 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,276 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:36:03,276 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,323 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:36:03,323 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:36:03,339 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,339 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,339 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,339 DEBUG SQL:111 - values identity_val_local()
  18:36:03,339 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,354 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:36:03,354 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,354 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,354 DEBUG JDBCTransaction:134 - commit
  18:36:03,354 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,354 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,354 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,354 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,354 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,370 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [<unreferenced>] (initialized)
  18:36:03,370 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,370 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,370 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
  18:36:03,370 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
  18:36:03,370 DEBUG Printer:106 - listing entities:
  18:36:03,370 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,370 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,370 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,370 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#1]
  18:36:03,370 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:36:03,370 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,370 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,370 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,370 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,370 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,370 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,370 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,370 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,370 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,370 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,370 DEBUG JDBCTransaction:82 - begin
  18:36:03,370 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,370 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,370 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,370 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,370 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,370 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,370 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,386 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Category#<null>]
  18:36:03,386 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,386 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Category.adverts
  18:36:03,386 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,386 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Category (native id)
  18:36:03,386 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,386 DEBUG SQL:111 - insert into Category (id, title) values (default, ?)
  18:36:03,386 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,386 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Category#<null>]
  18:36:03,386 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:36:03,386 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,386 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,386 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,386 DEBUG SQL:111 - values identity_val_local()
  18:36:03,386 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,386 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:36:03,386 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,386 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,386 DEBUG JDBCTransaction:134 - commit
  18:36:03,386 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,386 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,386 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,386 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,386 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,386 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,386 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [<unreferenced>] (initialized)
  18:36:03,386 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,386 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,386 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 2 objects
  18:36:03,386 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,386 DEBUG Printer:106 - listing entities:
  18:36:03,386 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,386 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,386 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,386 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,386 DEBUG AbstractCollectionPersister:1151 - Inserting collection: [sample.entity.Category.adverts#2]
  18:36:03,386 DEBUG AbstractCollectionPersister:1239 - collection was empty
  18:36:03,386 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,386 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,386 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,386 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,386 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,386 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,386 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,386 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,386 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,386 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,386 DEBUG SessionImpl:310 - closing session
  18:36:03,386 DEBUG ConnectionManager:403 - performing cleanup
  18:36:03,386 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,386 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,386 DEBUG SessionImpl:257 - opened session at timestamp: 14176119633
  18:36:03,386 DEBUG JDBCTransaction:82 - begin
  18:36:03,386 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,386 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,386 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,401 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,401 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,401 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,401 DEBUG JDBCTransaction:82 - begin
  18:36:03,401 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,401 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,401 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,401 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,401 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,401 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,401 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,401 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:36:03,401 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,401 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,401 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:36:03,401 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,401 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:36:03,401 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,401 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:36:03,401 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:36:03,401 DEBUG StringType:153 - binding 'jammy' to parameter: 2
  18:36:03,401 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,401 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,401 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,401 DEBUG SQL:111 - values identity_val_local()
  18:36:03,401 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,417 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:36:03,417 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,417 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,417 DEBUG JDBCTransaction:134 - commit
  18:36:03,417 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,417 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,417 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,417 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,417 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,417 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,417 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,417 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,417 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,417 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 3 objects
  18:36:03,417 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,417 DEBUG Printer:106 - listing entities:
  18:36:03,417 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,417 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,417 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,417 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,417 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,417 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,417 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,417 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,417 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,417 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,417 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,417 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,417 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,417 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,417 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,417 DEBUG JDBCTransaction:82 - begin
  18:36:03,417 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,417 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,417 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,417 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,417 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,417 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,417 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,417 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:36:03,417 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,417 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,417 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:36:03,417 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,417 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:36:03,417 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,417 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:36:03,417 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:36:03,417 DEBUG StringType:153 - binding 'dodgy' to parameter: 2
  18:36:03,417 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,417 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,417 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,417 DEBUG SQL:111 - values identity_val_local()
  18:36:03,417 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,417 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:36:03,417 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,417 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,417 DEBUG JDBCTransaction:134 - commit
  18:36:03,417 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,417 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,417 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,417 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,417 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,417 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,417 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,417 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,417 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,417 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 4 objects
  18:36:03,417 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,417 DEBUG Printer:106 - listing entities:
  18:36:03,417 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,417 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,417 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,432 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,432 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,432 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,432 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,432 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,432 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,432 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,432 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,432 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,432 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,432 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,432 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,432 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,432 DEBUG JDBCTransaction:82 - begin
  18:36:03,432 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,432 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,432 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,432 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,432 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,432 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,432 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,432 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.User#<null>]
  18:36:03,432 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,432 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,432 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.User (native id)
  18:36:03,432 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,432 DEBUG SQL:111 - insert into AdUser (id, name, password) values (default, ?, ?)
  18:36:03,432 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,432 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.User#<null>]
  18:36:03,432 DEBUG StringType:153 - binding 'Jeya' to parameter: 1
  18:36:03,432 DEBUG StringType:153 - binding 'Keerthi' to parameter: 2
  18:36:03,432 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,432 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,432 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,432 DEBUG SQL:111 - values identity_val_local()
  18:36:03,432 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,432 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:36:03,432 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,432 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,432 DEBUG JDBCTransaction:134 - commit
  18:36:03,432 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,432 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,432 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,432 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,432 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,432 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,432 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,432 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,432 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,432 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:36:03,432 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,432 DEBUG Printer:106 - listing entities:
  18:36:03,432 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,432 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,432 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,432 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,432 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,432 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,432 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,432 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,432 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,432 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,432 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,432 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,432 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,432 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,432 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,432 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,432 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,432 DEBUG SessionImpl:310 - closing session
  18:36:03,432 DEBUG ConnectionManager:403 - performing cleanup
  18:36:03,432 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,432 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,448 DEBUG SessionImpl:257 - opened session at timestamp: 14176119634
  18:36:03,448 DEBUG JDBCTransaction:82 - begin
  18:36:03,448 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,448 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,448 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,448 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,448 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,448 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,448 DEBUG JDBCTransaction:82 - begin
  18:36:03,448 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,448 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,448 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,448 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,448 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,448 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,448 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from User where name = :username)
  18:36:03,495 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.User where name = :username
  18:36:03,495 DEBUG HqlParser:88 - -> statement
  18:36:03,495 DEBUG HqlParser:88 - ---> selectStatement
  18:36:03,495 DEBUG HqlParser:88 - -----> queryRule
  18:36:03,495 DEBUG HqlParser:88 - -------> selectFrom
  18:36:03,495 DEBUG HqlParser:88 - ---------> fromClause
  18:36:03,495 DEBUG HqlParser:88 - -----------> fromRange
  18:36:03,495 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:36:03,495 DEBUG HqlParser:88 - ---------------> path
  18:36:03,495 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,495 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,495 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,495 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,495 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,495 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,495 DEBUG HqlParser:96 - <--------------- path
  18:36:03,495 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:36:03,495 DEBUG HqlParser:96 - <----------- fromRange
  18:36:03,495 DEBUG HqlParser:96 - <--------- fromClause
  18:36:03,495 DEBUG HqlParser:96 - <------- selectFrom
  18:36:03,495 DEBUG HqlParser:88 - -------> whereClause
  18:36:03,495 DEBUG HqlParser:88 - ---------> logicalExpression
  18:36:03,495 DEBUG HqlParser:88 - -----------> expression
  18:36:03,495 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:36:03,495 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:36:03,495 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:36:03,495 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:36:03,495 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:36:03,495 DEBUG HqlParser:88 - -----------------------> concatenation
  18:36:03,495 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:36:03,495 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:36:03,495 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:36:03,495 DEBUG HqlParser:88 - -------------------------------> atom
  18:36:03,495 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:36:03,495 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:36:03,495 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:36:03,510 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:36:03,510 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:36:03,510 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------------------------- atom
  18:36:03,510 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:36:03,510 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:36:03,510 DEBUG HqlParser:96 - <----------------------- concatenation
  18:36:03,510 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:36:03,510 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:36:03,510 DEBUG HqlParser:88 - -----------------------> concatenation
  18:36:03,510 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:36:03,510 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:36:03,510 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:36:03,510 DEBUG HqlParser:88 - -------------------------------> atom
  18:36:03,510 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:36:03,510 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:36:03,510 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:36:03,510 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------------------------- atom
  18:36:03,510 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:36:03,510 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:36:03,510 DEBUG HqlParser:96 - <----------------------- concatenation
  18:36:03,510 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:36:03,510 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:36:03,510 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:36:03,510 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:36:03,510 DEBUG HqlParser:96 - <----------- expression
  18:36:03,510 DEBUG HqlParser:96 - <--------- logicalExpression
  18:36:03,510 DEBUG HqlParser:96 - <------- whereClause
  18:36:03,510 DEBUG HqlParser:96 - <----- queryRule
  18:36:03,510 DEBUG HqlParser:96 - <--- selectStatement
  18:36:03,510 DEBUG HqlParser:96 - <- statement
  18:36:03,510 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'User'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'name'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'username'

  18:36:03,510 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,526 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:36:03,542 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:36:03,542 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:36:03,542 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:36:03,542 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:36:03,542 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:36:03,542 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:36:03,542 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:36:03,542 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:36:03,542 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:36:03,542 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:36:03,542 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,542 DEBUG HqlSqlWalker:200 - <----------------- path
  18:36:03,542 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:36:03,542 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:36:03,542 DEBUG HqlSqlWalker:200 - <--------------- path
  18:36:03,542 DEBUG HqlSqlWalker:186 - ---------------> identifier (User [IDENT])
  18:36:03,542 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:36:03,542 DEBUG HqlSqlWalker:200 - <------------- path
  18:36:03,557 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.User (no alias) -> user0_
  18:36:03,557 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:36:03,557 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:36:03,557 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:36:03,557 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (name [IDENT])
  18:36:03,557 DEBUG HqlSqlWalker:186 - ---------------> expr (name [IDENT])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (name [IDENT])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -------------------> identifier (name [IDENT])
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,557 DEBUG HqlSqlWalker:578 - attempting to resolve property [name] as a non-qualified ref
  18:36:03,557 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:36:03,557 DEBUG FromElement:626 - handling property dereference [sample.entity.User (null) -> name (class)]
  18:36:03,557 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:36:03,557 DEBUG DotNode:613 - getDataType() : name -> org.hibernate.type.StringType@52baae9d
  18:36:03,557 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.name -> user0_.name
  18:36:03,557 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:36:03,557 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:36:03,557 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:36:03,557 DEBUG HqlSqlWalker:186 - -------------------> identifier (username [IDENT])
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,557 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:36:03,557 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:36:03,557 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:36:03,557 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:36:03,557 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:36:03,557 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:36:03,557 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} AdUser user0_ ) ( where ( = ( user0_.name {synthetic-alias} name ) ? ) ) )
  18:36:03,557 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:36:03,573 DEBUG JoinProcessor:179 - Using FROM fragment [AdUser user0_]
  18:36:03,573 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:36:03,573 DEBUG HqlSqlWalker:200 - <----- query
  18:36:03,573 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:36:03,573 DEBUG HqlSqlWalker:200 - <- statement
  18:36:03,573 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (AdUser)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'user0_.id as id12_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}}
    |  \-[SQL_TOKEN] SqlFragment: 'user0_.name as name12_, user0_.password as password12_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[user0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'AdUser user0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=AdUser,tableAlias=user0_,origin=null,columns={,className=sample.entity.User}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'user0_.name' {propertyName=name,dereferenceType=ALL,propertyPath=name,path={synthetic-alias}.name,tableAlias=user0_,className=sample.entity.User,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'name' {originalText=name}
          \-[NAMED_PARAM] ParameterNode: '?' {name=username, expectedType=org.hibernate.type.StringType@52baae9d}

  18:36:03,573 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,589 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:36:03,589 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:36:03,589 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:36:03,589 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.id as id12_ [SELECT_EXPR])
  18:36:03,589 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.id as id12_ [SELECT_EXPR])
  18:36:03,589 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.id as id12_ [SELECT_EXPR])
  18:36:03,589 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,589 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,589 DEBUG SqlGenerator:90 - -------> selectColumn (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:36:03,589 DEBUG SqlGenerator:90 - ---------> selectExpr (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:36:03,589 DEBUG SqlGenerator:90 - -----------> selectAtom (user0_.name as name12_, user0_.password as password12_ [SQL_TOKEN])
  18:36:03,589 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,589 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,589 DEBUG SqlGenerator:104 - <----- selectClause
  18:36:03,589 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:36:03,589 DEBUG SqlGenerator:90 - -------> fromTable (AdUser user0_ [FROM_FRAGMENT])
  18:36:03,589 DEBUG SqlGenerator:104 - <------- fromTable
  18:36:03,589 DEBUG SqlGenerator:104 - <----- from
  18:36:03,589 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:36:03,589 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:36:03,589 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:36:03,589 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:36:03,589 DEBUG SqlGenerator:90 - -------------> expr (user0_.name [DOT])
  18:36:03,589 DEBUG SqlGenerator:90 - ---------------> simpleExpr (user0_.name [DOT])
  18:36:03,589 DEBUG SqlGenerator:90 - -----------------> addrExpr (user0_.name [DOT])
  18:36:03,589 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <------------- expr
  18:36:03,589 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:36:03,589 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:36:03,589 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:36:03,589 DEBUG SqlGenerator:104 - <----------------- parameter
  18:36:03,589 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <------------- expr
  18:36:03,589 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:36:03,589 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <----- whereExpr
  18:36:03,589 DEBUG SqlGenerator:104 - <--- selectStatement
  18:36:03,589 DEBUG SqlGenerator:104 - <- statement
  18:36:03,589 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.User where name = :username
  18:36:03,589 DEBUG QueryTranslatorImpl:242 - SQL: select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:36:03,589 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,589 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from User where name = :username)
  18:36:03,604 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,604 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,604 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,604 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,604 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,604 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,604 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,604 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,604 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,604 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:36:03,604 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,604 DEBUG Printer:106 - listing entities:
  18:36:03,604 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,604 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,604 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,604 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,604 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,604 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,604 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:36:03,604 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:36:03,604 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,604 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:36:03,604 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,620 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:36:03,620 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,620 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,620 DEBUG Loader:738 - processing result set
  18:36:03,620 DEBUG Loader:743 - result set row: 0
  18:36:03,620 DEBUG LongType:195 - returning '1' as column: id12_
  18:36:03,620 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:36:03,620 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,620 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,620 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,620 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,620 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,620 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,620 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating ( from Category where title = :categoryTitle)
  18:36:03,620 DEBUG QueryTranslatorImpl:272 - parse() - HQL:  from sample.entity.Category where title = :categoryTitle
  18:36:03,620 DEBUG HqlParser:88 - -> statement
  18:36:03,620 DEBUG HqlParser:88 - ---> selectStatement
  18:36:03,620 DEBUG HqlParser:88 - -----> queryRule
  18:36:03,620 DEBUG HqlParser:88 - -------> selectFrom
  18:36:03,620 DEBUG HqlParser:88 - ---------> fromClause
  18:36:03,620 DEBUG HqlParser:88 - -----------> fromRange
  18:36:03,635 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:36:03,635 DEBUG HqlParser:88 - ---------------> path
  18:36:03,635 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,635 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,635 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,635 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,635 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,635 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,635 DEBUG HqlParser:96 - <--------------- path
  18:36:03,635 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:36:03,635 DEBUG HqlParser:96 - <----------- fromRange
  18:36:03,635 DEBUG HqlParser:96 - <--------- fromClause
  18:36:03,635 DEBUG HqlParser:96 - <------- selectFrom
  18:36:03,635 DEBUG HqlParser:88 - -------> whereClause
  18:36:03,635 DEBUG HqlParser:88 - ---------> logicalExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------> expression
  18:36:03,635 DEBUG HqlParser:88 - -------------> logicalOrExpression
  18:36:03,635 DEBUG HqlParser:88 - ---------------> logicalAndExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------> negatedExpression
  18:36:03,635 DEBUG HqlParser:88 - -------------------> equalityExpression
  18:36:03,635 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------> concatenation
  18:36:03,635 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:36:03,635 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:36:03,635 DEBUG HqlParser:88 - -------------------------------> atom
  18:36:03,635 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------------------> identPrimary
  18:36:03,635 DEBUG HqlParser:88 - -------------------------------------> identifier
  18:36:03,635 DEBUG HqlParser:96 - <------------------------------------- identifier
  18:36:03,635 DEBUG HqlParser:96 - <----------------------------------- identPrimary
  18:36:03,635 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------------------------- atom
  18:36:03,635 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:36:03,635 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:36:03,635 DEBUG HqlParser:96 - <----------------------- concatenation
  18:36:03,635 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:36:03,635 DEBUG HqlParser:88 - ---------------------> relationalExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------> concatenation
  18:36:03,635 DEBUG HqlParser:88 - -------------------------> additiveExpression
  18:36:03,635 DEBUG HqlParser:88 - ---------------------------> multiplyExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------------> unaryExpression
  18:36:03,635 DEBUG HqlParser:88 - -------------------------------> atom
  18:36:03,635 DEBUG HqlParser:88 - ---------------------------------> primaryExpression
  18:36:03,635 DEBUG HqlParser:88 - -----------------------------------> identifier
  18:36:03,635 DEBUG HqlParser:96 - <----------------------------------- identifier
  18:36:03,635 DEBUG HqlParser:96 - <--------------------------------- primaryExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------------------------- atom
  18:36:03,635 DEBUG HqlParser:96 - <----------------------------- unaryExpression
  18:36:03,635 DEBUG HqlParser:96 - <--------------------------- multiplyExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------------------- additiveExpression
  18:36:03,635 DEBUG HqlParser:96 - <----------------------- concatenation
  18:36:03,635 DEBUG HqlParser:96 - <--------------------- relationalExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------------- equalityExpression
  18:36:03,635 DEBUG HqlParser:96 - <----------------- negatedExpression
  18:36:03,635 DEBUG HqlParser:96 - <--------------- logicalAndExpression
  18:36:03,635 DEBUG HqlParser:96 - <------------- logicalOrExpression
  18:36:03,635 DEBUG HqlParser:96 - <----------- expression
  18:36:03,635 DEBUG HqlParser:96 - <--------- logicalExpression
  18:36:03,635 DEBUG HqlParser:96 - <------- whereClause
  18:36:03,635 DEBUG HqlParser:96 - <----- queryRule
  18:36:03,635 DEBUG HqlParser:96 - <--- selectStatement
  18:36:03,635 DEBUG HqlParser:96 - <- statement
  18:36:03,635 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    +-[SELECT_FROM] Node: 'SELECT_FROM'
    |  \-[FROM] Node: 'from'
    |     \-[RANGE] Node: 'RANGE'
    |        \-[DOT] Node: '.'
    |           +-[DOT] Node: '.'
    |           |  +-[IDENT] Node: 'sample'
    |           |  \-[IDENT] Node: 'entity'
    |           \-[IDENT] Node: 'Category'
    \-[WHERE] Node: 'where'
       \-[EQ] Node: '='
          +-[IDENT] Node: 'title'
          \-[COLON] Node: ':'
             \-[IDENT] Node: 'categoryTitle'

  18:36:03,635 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,635 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:36:03,635 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:36:03,635 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:36:03,635 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:36:03,635 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:36:03,635 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:36:03,635 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:36:03,635 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:36:03,635 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:36:03,635 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:36:03,635 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:36:03,635 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,635 DEBUG HqlSqlWalker:200 - <----------------- path
  18:36:03,635 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:36:03,635 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:36:03,635 DEBUG HqlSqlWalker:200 - <--------------- path
  18:36:03,635 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:36:03,635 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:36:03,635 DEBUG HqlSqlWalker:200 - <------------- path
  18:36:03,651 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:36:03,651 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:36:03,651 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:36:03,651 DEBUG HqlSqlWalker:186 - -------> whereClause (where [WHERE])
  18:36:03,651 DEBUG HqlSqlWalker:186 - ---------> logicalExpr (= [EQ])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -----------> comparisonExpr (= [EQ])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (title [IDENT])
  18:36:03,651 DEBUG HqlSqlWalker:186 - ---------------> expr (title [IDENT])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -----------------> addrExpr (title [IDENT])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -------------------> identifier (title [IDENT])
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,651 DEBUG HqlSqlWalker:578 - attempting to resolve property [title] as a non-qualified ref
  18:36:03,651 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias} -> {synthetic-alias}
  18:36:03,651 DEBUG FromElement:626 - handling property dereference [sample.entity.Category (null) -> title (class)]
  18:36:03,651 DEBUG HqlSqlWalker:200 - <----------------- addrExpr
  18:36:03,651 DEBUG DotNode:613 - getDataType() : title -> org.hibernate.type.StringType@52baae9d
  18:36:03,651 DEBUG FromReferenceNode:74 - Resolved :  {synthetic-alias}.title -> category0_.title
  18:36:03,651 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:36:03,651 DEBUG HqlSqlWalker:186 - -------------> exprOrSubquery (: [COLON])
  18:36:03,651 DEBUG HqlSqlWalker:186 - ---------------> expr (: [COLON])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -----------------> parameter (: [COLON])
  18:36:03,651 DEBUG HqlSqlWalker:186 - -------------------> identifier (categoryTitle [IDENT])
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,651 DEBUG HqlSqlWalker:200 - <----------------- parameter
  18:36:03,651 DEBUG HqlSqlWalker:200 - <--------------- expr
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------------- exprOrSubquery
  18:36:03,651 DEBUG HqlSqlWalker:200 - <----------- comparisonExpr
  18:36:03,651 DEBUG HqlSqlWalker:200 - <--------- logicalExpr
  18:36:03,651 DEBUG HqlSqlWalker:200 - <------- whereClause
  18:36:03,651 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:36:03,651 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) ( where ( = ( category0_.title {synthetic-alias} title ) ? ) ) )
  18:36:03,651 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:36:03,651 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:36:03,651 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:36:03,651 DEBUG HqlSqlWalker:200 - <----- query
  18:36:03,651 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:36:03,651 DEBUG HqlSqlWalker:200 - <- statement
  18:36:03,651 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    +-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
    |  \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}
    \-[WHERE] SqlNode: 'where'
       \-[EQ] BinaryLogicOperatorNode: '='
          +-[DOT] DotNode: 'category0_.title' {propertyName=title,dereferenceType=ALL,propertyPath=title,path={synthetic-alias}.title,tableAlias=category0_,className=sample.entity.Category,classAlias=null}
          |  +-[IDENT] IdentNode: '{synthetic-alias}' {originalText={synthetic-alias}}
          |  \-[IDENT] IdentNode: 'title' {originalText=title}
          \-[NAMED_PARAM] ParameterNode: '?' {name=categoryTitle, expectedType=org.hibernate.type.StringType@52baae9d}

  18:36:03,651 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,651 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:36:03,651 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:36:03,651 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:36:03,651 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,651 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,651 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,651 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,651 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,651 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,651 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,651 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,651 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,651 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,651 DEBUG SqlGenerator:104 - <----- selectClause
  18:36:03,651 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:36:03,651 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:36:03,651 DEBUG SqlGenerator:104 - <------- fromTable
  18:36:03,651 DEBUG SqlGenerator:104 - <----- from
  18:36:03,651 DEBUG SqlGenerator:90 - -----> whereExpr (= [EQ])
  18:36:03,651 DEBUG SqlGenerator:90 - -------> booleanExpr (= [EQ])
  18:36:03,651 DEBUG SqlGenerator:90 - ---------> comparisonExpr (= [EQ])
  18:36:03,651 DEBUG SqlGenerator:90 - -----------> binaryComparisonExpression (= [EQ])
  18:36:03,651 DEBUG SqlGenerator:90 - -------------> expr (category0_.title [DOT])
  18:36:03,651 DEBUG SqlGenerator:90 - ---------------> simpleExpr (category0_.title [DOT])
  18:36:03,651 DEBUG SqlGenerator:90 - -----------------> addrExpr (category0_.title [DOT])
  18:36:03,651 DEBUG SqlGenerator:104 - <----------------- addrExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <------------- expr
  18:36:03,651 DEBUG SqlGenerator:90 - -------------> expr (? [NAMED_PARAM])
  18:36:03,651 DEBUG SqlGenerator:90 - ---------------> simpleExpr (? [NAMED_PARAM])
  18:36:03,651 DEBUG SqlGenerator:90 - -----------------> parameter (? [NAMED_PARAM])
  18:36:03,651 DEBUG SqlGenerator:104 - <----------------- parameter
  18:36:03,651 DEBUG SqlGenerator:104 - <--------------- simpleExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <------------- expr
  18:36:03,651 DEBUG SqlGenerator:104 - <----------- binaryComparisonExpression
  18:36:03,651 DEBUG SqlGenerator:104 - <--------- comparisonExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <------- booleanExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <----- whereExpr
  18:36:03,651 DEBUG SqlGenerator:104 - <--- selectStatement
  18:36:03,651 DEBUG SqlGenerator:104 - <- statement
  18:36:03,667 DEBUG QueryTranslatorImpl:241 - HQL:  from sample.entity.Category where title = :categoryTitle
  18:36:03,667 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:36:03,667 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,667 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills ( from Category where title = :categoryTitle)
  18:36:03,667 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,667 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,667 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,667 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,667 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,667 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,667 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,667 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,667 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,667 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 5 objects
  18:36:03,667 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 2 collections
  18:36:03,667 DEBUG Printer:106 - listing entities:
  18:36:03,667 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,667 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,667 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,667 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[]}
  18:36:03,667 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,667 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,667 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:36:03,667 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:36:03,667 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,667 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:36:03,667 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,667 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:36:03,667 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,667 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,667 DEBUG Loader:738 - processing result set
  18:36:03,667 DEBUG Loader:743 - result set row: 0
  18:36:03,667 DEBUG LongType:195 - returning '1' as column: id11_
  18:36:03,667 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:36:03,667 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,667 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,667 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,667 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,667 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,667 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,667 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,667 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:36:03,667 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,667 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:36:03,667 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,667 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:36:03,667 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,667 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:03,667 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,682 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:36:03,682 DEBUG StringType:153 - binding 'Must have original joysticks.' to parameter: 1
  18:36:03,682 DEBUG StringType:153 - binding 'Atari 2600 wanted' to parameter: 2
  18:36:03,682 DEBUG LongType:153 - binding '1' to parameter: 3
  18:36:03,698 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,698 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,698 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,698 DEBUG SQL:111 - values identity_val_local()
  18:36:03,698 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,698 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 1
  18:36:03,698 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,698 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,698 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:36:03,698 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:36:03,698 DEBUG JDBCTransaction:134 - commit
  18:36:03,698 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,698 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,698 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,698 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,698 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:36:03,698 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,698 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,698 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,698 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [<unreferenced>] (initialized)
  18:36:03,698 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,698 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,698 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:36:03,698 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 3 collections
  18:36:03,698 DEBUG Printer:106 - listing entities:
  18:36:03,698 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,698 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,698 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,698 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:36:03,698 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,698 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,698 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,698 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,698 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:36:03,698 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:36:03,698 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:36:03,698 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,698 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:03,698 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,713 DEBUG LongType:153 - binding '1' to parameter: 1
  18:36:03,713 DEBUG LongType:153 - binding '1' to parameter: 2
  18:36:03,713 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:36:03,713 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,713 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,713 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,713 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,713 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,713 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,713 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,713 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,713 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,713 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,713 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,713 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,713 DEBUG JDBCTransaction:82 - begin
  18:36:03,713 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,713 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,713 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,713 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,713 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,713 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,713 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,713 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,713 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,713 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,713 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,713 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,713 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,713 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,713 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:36:03,713 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:36:03,713 DEBUG Printer:106 - listing entities:
  18:36:03,713 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,713 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,713 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,713 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:36:03,713 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,713 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,713 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,713 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:36:03,713 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:36:03,713 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,713 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:36:03,713 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,713 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:36:03,713 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,713 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,713 DEBUG Loader:738 - processing result set
  18:36:03,713 DEBUG Loader:743 - result set row: 0
  18:36:03,713 DEBUG LongType:195 - returning '2' as column: id12_
  18:36:03,713 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:36:03,713 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,713 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,713 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,713 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,713 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,713 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,713 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,713 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,713 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,713 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,713 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,713 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,713 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,713 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,729 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,729 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 6 objects
  18:36:03,729 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 3 collections
  18:36:03,729 DEBUG Printer:106 - listing entities:
  18:36:03,729 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,729 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,729 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,729 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1]}
  18:36:03,729 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,729 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,729 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,729 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:36:03,729 DEBUG QueryParameters:288 - named parameters: {categoryTitle=retro}
  18:36:03,729 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,729 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:36:03,729 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,729 DEBUG StringType:153 - binding 'retro' to parameter: 1
  18:36:03,729 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,729 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,729 DEBUG Loader:738 - processing result set
  18:36:03,729 DEBUG Loader:743 - result set row: 0
  18:36:03,729 DEBUG LongType:195 - returning '1' as column: id11_
  18:36:03,729 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:36:03,729 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,729 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,729 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,729 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,729 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,729 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,729 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,729 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:36:03,729 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,729 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:36:03,729 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,729 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:36:03,729 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,729 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:03,729 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,729 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:36:03,729 DEBUG StringType:153 - binding '48k original box and packaging' to parameter: 1
  18:36:03,729 DEBUG StringType:153 - binding 'Sinclair Spectrum for sale' to parameter: 2
  18:36:03,729 DEBUG LongType:153 - binding '2' to parameter: 3
  18:36:03,729 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,729 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,729 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,729 DEBUG SQL:111 - values identity_val_local()
  18:36:03,729 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,729 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 2
  18:36:03,729 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,729 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,729 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:36:03,729 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#1]
  18:36:03,729 DEBUG JDBCTransaction:134 - commit
  18:36:03,729 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,729 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,729 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,729 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,729 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#1]
  18:36:03,729 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,729 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,729 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,729 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,729 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [<unreferenced>] (initialized)
  18:36:03,729 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,729 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,729 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:36:03,729 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 4 collections
  18:36:03,729 DEBUG Printer:106 - listing entities:
  18:36:03,729 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,729 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,745 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,745 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,745 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,745 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,745 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#1]
  18:36:03,745 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:36:03,745 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#1]
  18:36:03,745 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,745 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:03,745 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,745 DEBUG LongType:153 - binding '1' to parameter: 1
  18:36:03,745 DEBUG LongType:153 - binding '2' to parameter: 2
  18:36:03,745 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:36:03,745 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,745 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,745 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,745 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,745 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,745 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,745 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,745 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,745 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,745 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,745 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,745 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,745 DEBUG JDBCTransaction:82 - begin
  18:36:03,745 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,745 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,745 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,745 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,745 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,745 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,745 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,745 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,745 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,745 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,745 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,745 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,745 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,745 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,745 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,745 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,745 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,745 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,745 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:36:03,745 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:36:03,745 DEBUG Printer:106 - listing entities:
  18:36:03,745 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,745 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,745 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,745 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,745 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,745 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,760 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:36:03,760 DEBUG QueryParameters:288 - named parameters: {username=dave}
  18:36:03,760 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,760 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:36:03,760 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,760 DEBUG StringType:153 - binding 'dave' to parameter: 1
  18:36:03,760 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,760 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,760 DEBUG Loader:738 - processing result set
  18:36:03,760 DEBUG Loader:743 - result set row: 0
  18:36:03,760 DEBUG LongType:195 - returning '2' as column: id12_
  18:36:03,760 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#2]
  18:36:03,760 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,760 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,760 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,760 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,760 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,760 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,760 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,760 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,760 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,760 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,760 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,760 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,760 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,760 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,760 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,760 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,760 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,760 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,760 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 7 objects
  18:36:03,760 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 4 collections
  18:36:03,760 DEBUG Printer:106 - listing entities:
  18:36:03,760 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,760 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[]}
  18:36:03,760 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,760 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,760 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,760 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,760 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,760 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,760 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:36:03,760 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:36:03,760 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,760 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:36:03,760 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,760 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:36:03,760 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,760 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,760 DEBUG Loader:738 - processing result set
  18:36:03,776 DEBUG Loader:743 - result set row: 0
  18:36:03,776 DEBUG LongType:195 - returning '2' as column: id11_
  18:36:03,776 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:36:03,776 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,776 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,776 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,776 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,776 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,776 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,776 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,776 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:36:03,776 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,776 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:36:03,776 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,776 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:36:03,776 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,776 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:03,776 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,776 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:36:03,776 DEBUG StringType:153 - binding 'Kitten and puppies design' to parameter: 1
  18:36:03,776 DEBUG StringType:153 - binding 'Commemorative Plates' to parameter: 2
  18:36:03,776 DEBUG LongType:153 - binding '2' to parameter: 3
  18:36:03,776 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,776 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,776 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,776 DEBUG SQL:111 - values identity_val_local()
  18:36:03,776 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,776 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 3
  18:36:03,776 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,776 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,776 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:36:03,776 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:36:03,776 DEBUG JDBCTransaction:134 - commit
  18:36:03,776 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,776 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,776 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,776 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,776 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:36:03,776 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,776 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,776 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,776 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,776 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,776 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [<unreferenced>] (initialized)
  18:36:03,776 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,776 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,776 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:36:03,776 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 5 collections
  18:36:03,776 DEBUG Printer:106 - listing entities:
  18:36:03,776 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,776 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:36:03,776 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,776 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,776 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,776 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,776 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,776 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,791 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,791 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,791 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:36:03,791 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:36:03,791 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:36:03,791 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,791 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:03,791 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,791 DEBUG LongType:153 - binding '2' to parameter: 1
  18:36:03,791 DEBUG LongType:153 - binding '3' to parameter: 2
  18:36:03,791 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:36:03,791 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,791 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,791 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,791 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,791 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,791 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,791 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,791 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,791 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,791 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,791 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,791 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,791 DEBUG JDBCTransaction:82 - begin
  18:36:03,791 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,791 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,791 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,791 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,791 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,791 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,791 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,791 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from User where name = :username)
  18:36:03,791 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,791 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,791 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,791 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,791 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,791 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,791 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,791 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,791 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:36:03,791 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,791 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,791 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:36:03,791 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:36:03,791 DEBUG Printer:106 - listing entities:
  18:36:03,791 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,791 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:36:03,791 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,791 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,791 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,791 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,791 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,791 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,791 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,791 DEBUG HQLQueryPlan:174 - find:  from User where name = :username
  18:36:03,791 DEBUG QueryParameters:288 - named parameters: {username=jeff}
  18:36:03,791 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,791 DEBUG SQL:111 - select user0_.id as id12_, user0_.name as name12_, user0_.password as password12_ from AdUser user0_ where user0_.name=?
  18:36:03,791 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,807 DEBUG StringType:153 - binding 'jeff' to parameter: 1
  18:36:03,807 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,807 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,807 DEBUG Loader:738 - processing result set
  18:36:03,807 DEBUG Loader:743 - result set row: 0
  18:36:03,807 DEBUG LongType:195 - returning '1' as column: id12_
  18:36:03,807 DEBUG Loader:1218 - result row: EntityKey[sample.entity.User#1]
  18:36:03,807 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,807 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,807 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,807 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,807 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,807 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,807 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,807 DEBUG QueryPlanCache:102 - located HQL query plan in cache ( from Category where title = :categoryTitle)
  18:36:03,807 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,807 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,807 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,807 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,807 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,807 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,807 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,807 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,807 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:36:03,807 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,807 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,807 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 8 objects
  18:36:03,807 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 5 collections
  18:36:03,807 DEBUG Printer:106 - listing entities:
  18:36:03,807 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,807 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3]}
  18:36:03,807 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,807 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,807 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,807 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,807 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,807 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,807 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,807 DEBUG HQLQueryPlan:174 - find:  from Category where title = :categoryTitle
  18:36:03,807 DEBUG QueryParameters:288 - named parameters: {categoryTitle=kitsch}
  18:36:03,807 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,807 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_ where category0_.title=?
  18:36:03,807 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,807 DEBUG StringType:153 - binding 'kitsch' to parameter: 1
  18:36:03,807 DEBUG Loader:1647 - Bound [2] parameters total
  18:36:03,807 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,807 DEBUG Loader:738 - processing result set
  18:36:03,807 DEBUG Loader:743 - result set row: 0
  18:36:03,807 DEBUG LongType:195 - returning '2' as column: id11_
  18:36:03,807 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:36:03,807 DEBUG Loader:765 - done processing result set (1 rows)
  18:36:03,807 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,807 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,823 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,823 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,823 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,823 DEBUG DefaultSaveOrUpdateEventListener:181 - saving transient instance
  18:36:03,823 DEBUG AbstractSaveEventListener:176 - saving [sample.entity.Advert#<null>]
  18:36:03,823 DEBUG AbstractSaveEventListener:267 - executing insertions
  18:36:03,823 DEBUG WrapVisitor:110 - Wrapped collection in role: sample.entity.Advert.categories
  18:36:03,823 DEBUG AbstractSaveEventListener:320 - executing identity-insert immediately
  18:36:03,823 DEBUG AbstractEntityPersister:2315 - Inserting entity: sample.entity.Advert (native id)
  18:36:03,823 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,823 DEBUG SQL:111 - insert into Advert (id, message, title, aduser) values (default, ?, ?, ?)
  18:36:03,823 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,823 DEBUG AbstractEntityPersister:2163 - Dehydrating entity: [sample.entity.Advert#<null>]
  18:36:03,823 DEBUG StringType:153 - binding 'Leopard skin pattern. Nice.' to parameter: 1
  18:36:03,823 DEBUG StringType:153 - binding 'Inflatable Sofa' to parameter: 2
  18:36:03,823 DEBUG LongType:153 - binding '1' to parameter: 3
  18:36:03,823 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,823 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,823 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,823 DEBUG SQL:111 - values identity_val_local()
  18:36:03,823 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,823 DEBUG IdentifierGeneratorHelper:87 - Natively generated identity: 4
  18:36:03,823 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,823 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,823 DEBUG DefaultSaveOrUpdateEventListener:122 - ignoring persistent instance
  18:36:03,823 DEBUG DefaultSaveOrUpdateEventListener:159 - object already associated with session: [sample.entity.Category#2]
  18:36:03,823 DEBUG JDBCTransaction:134 - commit
  18:36:03,823 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,823 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,823 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,823 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,823 DEBUG CollectionEntry:200 - Collection dirty: [sample.entity.Category.adverts#2]
  18:36:03,823 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:36:03,823 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [<unreferenced>] (initialized)
  18:36:03,823 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,823 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,823 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:36:03,823 DEBUG AbstractFlushingEventListener:114 - Flushed: 1 (re)creations, 1 updates, 0 removals to 6 collections
  18:36:03,823 DEBUG Printer:106 - listing entities:
  18:36:03,823 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,823 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:36:03,823 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,823 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,823 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,823 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,823 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,823 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,823 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:36:03,823 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,823 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,823 DEBUG AbstractCollectionPersister:1265 - Deleting rows of collection: [sample.entity.Category.adverts#2]
  18:36:03,823 DEBUG AbstractCollectionPersister:1348 - no rows to delete
  18:36:03,823 DEBUG AbstractCollectionPersister:1374 - Inserting rows of collection: [sample.entity.Category.adverts#2]
  18:36:03,823 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,823 DEBUG SQL:111 - insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  18:36:03,823 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,823 DEBUG LongType:153 - binding '2' to parameter: 1
  18:36:03,823 DEBUG LongType:153 - binding '4' to parameter: 2
  18:36:03,823 DEBUG AbstractCollectionPersister:1451 - done inserting rows: 1 inserted
  18:36:03,823 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,823 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,823 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,823 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,823 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,823 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,823 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,823 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,823 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,823 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,823 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,838 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,838 DEBUG SessionImpl:310 - closing session
  18:36:03,838 DEBUG ConnectionManager:403 - performing cleanup
  18:36:03,838 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,838 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,838 DEBUG SessionImpl:257 - opened session at timestamp: 14176119638
  18:36:03,838 DEBUG JDBCTransaction:82 - begin
  18:36:03,838 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,838 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,838 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,838 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,838 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,838 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,838 DEBUG JDBCTransaction:82 - begin
  18:36:03,838 DEBUG ConnectionManager:444 - opening JDBC connection
  18:36:03,838 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  18:36:03,838 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  18:36:03,838 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:derby:firstdb, Isolation Level: 2
  18:36:03,838 DEBUG JDBCTransaction:87 - current autocommit status: false
  18:36:03,838 DEBUG JDBCContext:237 - after transaction begin
  18:36:03,838 DEBUG QueryPlanCache:96 - unable to locate HQL query plan in cache; generating (from Category)
  18:36:03,838 DEBUG QueryTranslatorImpl:272 - parse() - HQL: from sample.entity.Category
  18:36:03,838 DEBUG HqlParser:88 - -> statement
  18:36:03,838 DEBUG HqlParser:88 - ---> selectStatement
  18:36:03,838 DEBUG HqlParser:88 - -----> queryRule
  18:36:03,838 DEBUG HqlParser:88 - -------> selectFrom
  18:36:03,838 DEBUG HqlParser:88 - ---------> fromClause
  18:36:03,838 DEBUG HqlParser:88 - -----------> fromRange
  18:36:03,838 DEBUG HqlParser:88 - -------------> fromClassOrOuterQueryPath
  18:36:03,838 DEBUG HqlParser:88 - ---------------> path
  18:36:03,838 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,838 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,838 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,838 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,838 DEBUG HqlParser:88 - -----------------> identifier
  18:36:03,838 DEBUG HqlParser:96 - <----------------- identifier
  18:36:03,838 DEBUG HqlParser:96 - <--------------- path
  18:36:03,838 DEBUG HqlParser:96 - <------------- fromClassOrOuterQueryPath
  18:36:03,838 DEBUG HqlParser:96 - <----------- fromRange
  18:36:03,838 DEBUG HqlParser:96 - <--------- fromClause
  18:36:03,838 DEBUG HqlParser:96 - <------- selectFrom
  18:36:03,838 DEBUG HqlParser:96 - <----- queryRule
  18:36:03,838 DEBUG HqlParser:96 - <--- selectStatement
  18:36:03,838 DEBUG HqlParser:96 - <- statement
  18:36:03,838 DEBUG AST:291 - --- HQL AST ---
 \-[QUERY] Node: 'query'
    \-[SELECT_FROM] Node: 'SELECT_FROM'
       \-[FROM] Node: 'from'
          \-[RANGE] Node: 'RANGE'
             \-[DOT] Node: '.'
                +-[DOT] Node: '.'
                |  +-[IDENT] Node: 'sample'
                |  \-[IDENT] Node: 'entity'
                \-[IDENT] Node: 'Category'

  18:36:03,838 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,838 DEBUG HqlSqlWalker:186 - -> statement (query [QUERY])
  18:36:03,838 DEBUG HqlSqlWalker:186 - ---> selectStatement (query [QUERY])
  18:36:03,838 DEBUG HqlSqlWalker:186 - -----> query (query [QUERY])
  18:36:03,838 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
  18:36:03,838 DEBUG HqlSqlWalker:186 - -------> fromClause (from [FROM])
  18:36:03,838 DEBUG HqlSqlWalker:186 - ---------> fromElementList (RANGE [RANGE])
  18:36:03,854 DEBUG HqlSqlWalker:186 - -----------> fromElement (RANGE [RANGE])
  18:36:03,854 DEBUG HqlSqlWalker:186 - -------------> path (. [DOT])
  18:36:03,854 DEBUG HqlSqlWalker:186 - ---------------> path (. [DOT])
  18:36:03,854 DEBUG HqlSqlWalker:186 - -----------------> path (sample [IDENT])
  18:36:03,854 DEBUG HqlSqlWalker:186 - -------------------> identifier (sample [IDENT])
  18:36:03,854 DEBUG HqlSqlWalker:200 - <------------------- identifier
  18:36:03,854 DEBUG HqlSqlWalker:200 - <----------------- path
  18:36:03,854 DEBUG HqlSqlWalker:186 - -----------------> identifier (entity [IDENT])
  18:36:03,854 DEBUG HqlSqlWalker:200 - <----------------- identifier
  18:36:03,854 DEBUG HqlSqlWalker:200 - <--------------- path
  18:36:03,854 DEBUG HqlSqlWalker:186 - ---------------> identifier (Category [IDENT])
  18:36:03,854 DEBUG HqlSqlWalker:200 - <--------------- identifier
  18:36:03,854 DEBUG HqlSqlWalker:200 - <------------- path
  18:36:03,854 DEBUG FromElement:157 - FromClause{level=1} :  sample.entity.Category (no alias) -> category0_
  18:36:03,854 DEBUG HqlSqlWalker:200 - <----------- fromElement
  18:36:03,854 DEBUG HqlSqlWalker:200 - <--------- fromElementList
  18:36:03,854 DEBUG HqlSqlWalker:200 - <------- fromClause
  18:36:03,854 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
  18:36:03,854 DEBUG HqlSqlWalker:612 - processQuery() :  ( SELECT ( FromClause{level=1} Category category0_ ) )
  18:36:03,854 DEBUG HqlSqlWalker:855 - Derived SELECT clause created.
  18:36:03,854 DEBUG JoinProcessor:179 - Using FROM fragment [Category category0_]
  18:36:03,854 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
  18:36:03,854 DEBUG HqlSqlWalker:200 - <----- query
  18:36:03,854 DEBUG HqlSqlWalker:200 - <--- selectStatement
  18:36:03,854 DEBUG HqlSqlWalker:200 - <- statement
  18:36:03,854 DEBUG AST:258 - --- SQL AST ---
 \-[SELECT] QueryNode: 'SELECT'  querySpaces (Category)
    +-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
    |  +-[SELECT_EXPR] SelectExpressionImpl: 'category0_.id as id11_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}}
    |  \-[SQL_TOKEN] SqlFragment: 'category0_.title as title11_'
    \-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=[], fromElementByTableAlias=[category0_], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
       \-[FROM_FRAGMENT] FromElement: 'Category category0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=Category,tableAlias=category0_,origin=null,columns={,className=sample.entity.Category}}

  18:36:03,854 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,854 DEBUG SqlGenerator:90 - -> statement (SELECT [SELECT])
  18:36:03,854 DEBUG SqlGenerator:90 - ---> selectStatement (SELECT [SELECT])
  18:36:03,854 DEBUG SqlGenerator:90 - -----> selectClause ({derived select clause} [SELECT_CLAUSE])
  18:36:03,854 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,854 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,854 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.id as id11_ [SELECT_EXPR])
  18:36:03,854 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,854 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,854 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,854 DEBUG SqlGenerator:90 - -------> selectColumn (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,854 DEBUG SqlGenerator:90 - ---------> selectExpr (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,854 DEBUG SqlGenerator:90 - -----------> selectAtom (category0_.title as title11_ [SQL_TOKEN])
  18:36:03,854 DEBUG SqlGenerator:104 - <----------- selectAtom
  18:36:03,854 DEBUG SqlGenerator:104 - <--------- selectExpr
  18:36:03,854 DEBUG SqlGenerator:104 - <------- selectColumn
  18:36:03,854 DEBUG SqlGenerator:104 - <----- selectClause
  18:36:03,854 DEBUG SqlGenerator:90 - -----> from (from [FROM])
  18:36:03,854 DEBUG SqlGenerator:90 - -------> fromTable (Category category0_ [FROM_FRAGMENT])
  18:36:03,854 DEBUG SqlGenerator:104 - <------- fromTable
  18:36:03,854 DEBUG SqlGenerator:104 - <----- from
  18:36:03,854 DEBUG SqlGenerator:104 - <--- selectStatement
  18:36:03,854 DEBUG SqlGenerator:104 - <- statement
  18:36:03,854 DEBUG QueryTranslatorImpl:241 - HQL: from sample.entity.Category
  18:36:03,854 DEBUG QueryTranslatorImpl:242 - SQL: select category0_.id as id11_, category0_.title as title11_ from Category category0_
  18:36:03,854 DEBUG ErrorCounter:91 - throwQueryException() : no errors
  18:36:03,854 DEBUG HQLQueryPlan:293 - HQL param location recognition took 0 mills (from Category)
  18:36:03,854 DEBUG QueryPlanCache:102 - located HQL query plan in cache (from Category)
  18:36:03,854 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,854 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,854 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,854 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:36:03,854 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [sample.entity.Advert.categories#4] (initialized)
  18:36:03,854 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,854 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,854 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:36:03,854 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 6 collections
  18:36:03,854 DEBUG Printer:106 - listing entities:
  18:36:03,854 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,854 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:36:03,854 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,854 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,854 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,854 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,854 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,854 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,854 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:36:03,854 DEBUG DefaultAutoFlushEventListener:76 - Dont need to execute flush
  18:36:03,854 DEBUG HQLQueryPlan:174 - find: from Category
  18:36:03,854 DEBUG QueryParameters:288 - named parameters: {}
  18:36:03,854 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
  18:36:03,854 DEBUG SQL:111 - select category0_.id as id11_, category0_.title as title11_ from Category category0_
  18:36:03,854 DEBUG AbstractBatcher:513 - preparing statement
  18:36:03,869 DEBUG Loader:1647 - Bound [1] parameters total
  18:36:03,869 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
  18:36:03,869 DEBUG Loader:738 - processing result set
  18:36:03,869 DEBUG Loader:743 - result set row: 0
  18:36:03,869 DEBUG LongType:195 - returning '1' as column: id11_
  18:36:03,869 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#1]
  18:36:03,869 DEBUG Loader:743 - result set row: 1
  18:36:03,869 DEBUG LongType:195 - returning '2' as column: id11_
  18:36:03,869 DEBUG Loader:1218 - result row: EntityKey[sample.entity.Category#2]
  18:36:03,869 DEBUG Loader:765 - done processing result set (2 rows)
  18:36:03,869 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
  18:36:03,869 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
  18:36:03,869 DEBUG AbstractBatcher:562 - closing statement
  18:36:03,869 DEBUG Loader:895 - total objects hydrated: 0
  18:36:03,869 DEBUG StatefulPersistenceContext:892 - initializing non-lazy collections
  18:36:03,869 DEBUG JDBCTransaction:134 - commit
  18:36:03,869 DEBUG SessionImpl:374 - automatically flushing session
  18:36:03,869 DEBUG AbstractFlushingEventListener:81 - flushing session
  18:36:03,869 DEBUG AbstractFlushingEventListener:134 - processing flush-time cascades
  18:36:03,869 DEBUG AbstractFlushingEventListener:177 - dirty checking collections
  18:36:03,869 DEBUG AbstractFlushingEventListener:194 - Flushing entities and processing referenced collections
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#1], was: [sample.entity.Category.adverts#1] (initialized)
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Category.adverts#2], was: [sample.entity.Category.adverts#2] (initialized)
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#1], was: [sample.entity.Advert.categories#1] (initialized)
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#2], was: [sample.entity.Advert.categories#2] (initialized)
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#3], was: [sample.entity.Advert.categories#3] (initialized)
  18:36:03,869 DEBUG Collections:198 - Collection found: [sample.entity.Advert.categories#4], was: [sample.entity.Advert.categories#4] (initialized)
  18:36:03,869 DEBUG AbstractFlushingEventListener:233 - Processing unreferenced collections
  18:36:03,869 DEBUG AbstractFlushingEventListener:247 - Scheduling collection removes/(re)creates/updates
  18:36:03,869 DEBUG AbstractFlushingEventListener:108 - Flushed: 0 insertions, 0 updates, 0 deletions to 9 objects
  18:36:03,869 DEBUG AbstractFlushingEventListener:114 - Flushed: 0 (re)creations, 0 updates, 0 removals to 6 collections
  18:36:03,869 DEBUG Printer:106 - listing entities:
  18:36:03,869 DEBUG Printer:113 - sample.entity.Category{id=1, title=retro, adverts=[sample.entity.Advert#1, sample.entity.Advert#2]}
  18:36:03,869 DEBUG Printer:113 - sample.entity.Category{id=2, title=kitsch, adverts=[sample.entity.Advert#3, sample.entity.Advert#4]}
  18:36:03,869 DEBUG Printer:113 - sample.entity.Advert{message=48k original box and packaging, id=2, title=Sinclair Spectrum for sale, categories=[], user=sample.entity.User#2}
  18:36:03,869 DEBUG Printer:113 - sample.entity.User{id=1, name=jeff, password=jammy}
  18:36:03,869 DEBUG Printer:113 - sample.entity.Advert{message=Kitten and puppies design, id=3, title=Commemorative Plates, categories=[], user=sample.entity.User#2}
  18:36:03,869 DEBUG Printer:113 - sample.entity.User{id=2, name=dave, password=dodgy}
  18:36:03,869 DEBUG Printer:113 - sample.entity.User{id=3, name=Jeya, password=Keerthi}
  18:36:03,869 DEBUG Printer:113 - sample.entity.Advert{message=Must have original joysticks., id=1, title=Atari 2600 wanted, categories=[], user=sample.entity.User#1}
  18:36:03,869 DEBUG Printer:113 - sample.entity.Advert{message=Leopard skin pattern. Nice., id=4, title=Inflatable Sofa, categories=[], user=sample.entity.User#1}
  18:36:03,869 DEBUG AbstractFlushingEventListener:313 - executing flush
  18:36:03,869 DEBUG ConnectionManager:492 - registering flush begin
  18:36:03,869 DEBUG ConnectionManager:501 - registering flush end
  18:36:03,869 DEBUG AbstractFlushingEventListener:344 - post flush
  18:36:03,869 DEBUG JDBCContext:228 - before transaction completion
  18:36:03,869 DEBUG SessionImpl:562 - before transaction completion
  18:36:03,869 DEBUG JDBCTransaction:147 - committed JDBC Connection
  18:36:03,869 DEBUG JDBCContext:242 - after transaction completion
  18:36:03,869 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
  18:36:03,869 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,869 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,869 DEBUG SessionImpl:592 - after transaction completion
  18:36:03,869 DEBUG SessionImpl:310 - closing session
  18:36:03,869 DEBUG ConnectionManager:403 - performing cleanup
  18:36:03,869 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
  18:36:03,869 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  18:36:03,869  INFO SessionFactoryImpl:938 - closing
  18:36:03,869  INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:derby:firstdb
  21:23:46,158  INFO Version:43 - Hibernate Annotations 3.5.3-Final
  21:23:46,175  INFO Environment:570 - Hibernate 3.5.3-Final
  21:23:46,178  INFO Environment:603 - hibernate.properties not found
  21:23:46,180  INFO Environment:781 - Bytecode provider name : javassist
  21:23:46,185  INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
  21:23:46,285 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  21:23:46,290 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  21:23:46,293 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  21:23:46,295 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  21:23:46,295 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  21:23:46,298 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  21:23:46,300 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  21:23:46,300 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  21:23:46,303 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  21:23:46,305 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  21:23:46,305 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  21:23:46,308 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  21:23:46,308 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  21:23:46,310 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  21:23:46,318  INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final
  21:23:46,323  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  21:23:46,325  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  21:23:46,358 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  21:23:46,358 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  21:23:46,360 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  21:23:46,360 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  21:23:46,395 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:mysql://localhost/hibernate
  21:23:46,398 DEBUG Configuration:1479 - hibernate.connection.driver_class=com.mysql.jdbc.Driver
  21:23:46,398 DEBUG Configuration:1479 - hibernate.connection.username=root
  21:23:46,398 DEBUG Configuration:1479 - hibernate.connection.password=admin
  21:23:46,398 DEBUG Configuration:1479 - hibernate.connection.pool_size=0
  21:23:46,403 DEBUG Configuration:1479 - hibernate.dialect=org.hibernate.dialect.MySQLDialect
  21:23:46,403 DEBUG Configuration:1479 - hibernate.show_sql=true
  21:23:46,403 DEBUG Configuration:1479 - hibernate.hbm2ddl.auto=create
  21:23:46,403 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@32d9367a [Attribute: name class value "sample.entity.Message"]
  21:23:46,418 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@5443f347 [Attribute: name class value "sample.entity.Advert"]
  21:23:46,418 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@53d23f53 [Attribute: name class value "sample.entity.Category"]
  21:23:46,420 DEBUG AnnotationConfiguration:734 - null <- org.dom4j.tree.DefaultAttribute@73bf3708 [Attribute: name class value "sample.entity.User"]
  21:23:46,423  INFO Configuration:1633 - Configured SessionFactory: null
  21:23:46,423 DEBUG Configuration:1634 - properties: {hibernate.connection.password=admin, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=root, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.7, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar;C:\Program Files\MySQL\MySQL Server 5.6\com.mysql.jdbc_5.1.5.jar\com.mysql.jdbc_5.1.5.jar, user.name=sivravis, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50466 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-1891024583\testng-customsuite.xml, java.home=C:\sivravis\tools\Java\jre7, sun.arch.data.model=64, hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost/hibernate, user.language=en, java.specification.vendor=Oracle Corporation, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=amd64}
  21:23:46,425 DEBUG AnnotationConfiguration:973 - Legacy Validator not present in classpath, ignoring event listener registration
  21:23:46,430 DEBUG HibernateSearchEventListenerRegister:231 - Search not present in classpath, ignoring event listener registration.
  21:23:46,430  INFO HibernateSearchEventListenerRegister:75 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
  21:23:46,430 DEBUG Configuration:1376 - Preparing to build session factory with filters : {}
  21:23:46,433 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  21:23:46,470 DEBUG AnnotationConfiguration:617 - Process hbm files
  21:23:46,475 DEBUG AnnotationConfiguration:625 - Process annotated classes
  21:23:46,483  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Message
  21:23:46,505 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  21:23:46,510 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  21:23:46,528 DEBUG EntityBinder:338 - Import with entity name Message
  21:23:46,534  INFO EntityBinder:501 - Bind entity sample.entity.Message on table Message
  21:23:46,569 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.id
  21:23:46,579 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=id, insertable=true, updatable=true, unique=false}
  21:23:46,584 DEBUG PropertyBinder:175 - binding property id with lazy=false
  21:23:46,586 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  21:23:46,591 DEBUG PropertyBinder:254 - Building property id
  21:23:46,596 DEBUG PropertyBinder:311 - Cascading id with null
  21:23:46,599 DEBUG AnnotationBinder:2095 - Bind @Id on id
  21:23:46,599 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Message.messageText
  21:23:46,601 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Message), mappingColumn=messageText, insertable=true, updatable=true, unique=false}
  21:23:46,601 DEBUG PropertyBinder:175 - binding property messageText with lazy=false
  21:23:46,601 DEBUG SimpleValueBinder:294 - building SimpleValue for messageText
  21:23:46,601 DEBUG PropertyBinder:254 - Building property messageText
  21:23:46,601 DEBUG PropertyBinder:311 - Cascading messageText with null
  21:23:46,606  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Advert
  21:23:46,606 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  21:23:46,606 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  21:23:46,606 DEBUG EntityBinder:338 - Import with entity name Advert
  21:23:46,609  INFO EntityBinder:501 - Bind entity sample.entity.Advert on table Advert
  21:23:46,621 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.id
  21:23:46,624 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=id, insertable=true, updatable=true, unique=false}
  21:23:46,624 DEBUG PropertyBinder:175 - binding property id with lazy=false
  21:23:46,624 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  21:23:46,624 DEBUG PropertyBinder:254 - Building property id
  21:23:46,624 DEBUG PropertyBinder:311 - Cascading id with null
  21:23:46,626 DEBUG AnnotationBinder:2095 - Bind @Id on id
  21:23:46,626 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.categories
  21:23:46,629 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=null, insertable=true, updatable=true, unique=false}
  21:23:46,641 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=element, insertable=true, updatable=true, unique=false}
  21:23:46,644 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=categories_KEY, insertable=true, updatable=true, unique=false}
  21:23:46,646 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='categories_KEY', referencedColumn='null', mappedBy='null'}
  21:23:46,649 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  21:23:46,649 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy='adverts'}
  21:23:46,651 DEBUG CollectionBinder:369 - Collection role: sample.entity.Advert.categories
  21:23:46,654 DEBUG PropertyBinder:254 - Building property categories
  21:23:46,654 DEBUG PropertyBinder:311 - Cascading categories with none
  21:23:46,656 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.message
  21:23:46,656 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=message, insertable=true, updatable=true, unique=false}
  21:23:46,656 DEBUG PropertyBinder:175 - binding property message with lazy=false
  21:23:46,664 DEBUG SimpleValueBinder:294 - building SimpleValue for message
  21:23:46,664 DEBUG PropertyBinder:254 - Building property message
  21:23:46,664 DEBUG PropertyBinder:311 - Cascading message with null
  21:23:46,666 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.title
  21:23:46,666 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=title, insertable=true, updatable=true, unique=false}
  21:23:46,666 DEBUG PropertyBinder:175 - binding property title with lazy=false
  21:23:46,666 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  21:23:46,666 DEBUG PropertyBinder:254 - Building property title
  21:23:46,666 DEBUG PropertyBinder:311 - Cascading title with null
  21:23:46,669 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Advert.user
  21:23:46,669 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='aduser', referencedColumn='', mappedBy=''}
  21:23:46,669 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Advert), mappingColumn=user, insertable=true, updatable=true, unique=false}
  21:23:46,671 DEBUG PropertyBinder:254 - Building property user
  21:23:46,671 DEBUG PropertyBinder:311 - Cascading user with none
  21:23:46,674  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.Category
  21:23:46,674 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  21:23:46,674 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  21:23:46,674 DEBUG EntityBinder:338 - Import with entity name Category
  21:23:46,674  INFO EntityBinder:501 - Bind entity sample.entity.Category on table Category
  21:23:46,684 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.id
  21:23:46,684 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=id, insertable=true, updatable=true, unique=false}
  21:23:46,686 DEBUG PropertyBinder:175 - binding property id with lazy=false
  21:23:46,686 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  21:23:46,686 DEBUG PropertyBinder:254 - Building property id
  21:23:46,686 DEBUG PropertyBinder:311 - Cascading id with null
  21:23:46,686 DEBUG AnnotationBinder:2095 - Bind @Id on id
  21:23:46,689 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.adverts
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=null, insertable=true, updatable=true, unique=false}
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=element, insertable=true, updatable=true, unique=false}
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=adverts_KEY, insertable=true, updatable=true, unique=false}
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='adverts_KEY', referencedColumn='null', mappedBy='null'}
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  21:23:46,689 DEBUG Ejb3Column:187 - Binding column: Ejb3JoinColumn{logicalColumnName='null', referencedColumn='null', mappedBy=''}
  21:23:46,691 DEBUG CollectionBinder:369 - Collection role: sample.entity.Category.adverts
  21:23:46,691 DEBUG PropertyBinder:254 - Building property adverts
  21:23:46,691 DEBUG PropertyBinder:311 - Cascading adverts with none
  21:23:46,691 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.Category.title
  21:23:46,691 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(Category), mappingColumn=title, insertable=true, updatable=true, unique=true}
  21:23:46,691 DEBUG PropertyBinder:175 - binding property title with lazy=false
  21:23:46,691 DEBUG SimpleValueBinder:294 - building SimpleValue for title
  21:23:46,691 DEBUG PropertyBinder:254 - Building property title
  21:23:46,691 DEBUG PropertyBinder:311 - Cascading title with null
  21:23:46,694  INFO AnnotationBinder:529 - Binding entity from annotated class: sample.entity.User
  21:23:46,694 DEBUG Ejb3Column:187 - Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  21:23:46,694 DEBUG AnnotationBinder:984 - no value specified for 'javax.persistence.sharedCache.mode'; using UNSPECIFIED
  21:23:46,694 DEBUG EntityBinder:338 - Import with entity name User
  21:23:46,694  INFO EntityBinder:501 - Bind entity sample.entity.User on table AdUser
  21:23:46,696 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.id
  21:23:46,696 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=id, insertable=true, updatable=true, unique=false}
  21:23:46,699 DEBUG PropertyBinder:175 - binding property id with lazy=false
  21:23:46,699 DEBUG SimpleValueBinder:294 - building SimpleValue for id
  21:23:46,699 DEBUG PropertyBinder:254 - Building property id
  21:23:46,699 DEBUG PropertyBinder:311 - Cascading id with null
  21:23:46,699 DEBUG AnnotationBinder:2095 - Bind @Id on id
  21:23:46,699 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.name
  21:23:46,701 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=name, insertable=true, updatable=true, unique=true}
  21:23:46,701 DEBUG PropertyBinder:175 - binding property name with lazy=false
  21:23:46,701 DEBUG SimpleValueBinder:294 - building SimpleValue for name
  21:23:46,701 DEBUG PropertyBinder:254 - Building property name
  21:23:46,701 DEBUG PropertyBinder:311 - Cascading name with null
  21:23:46,704 DEBUG AnnotationBinder:1404 - Processing annotations of sample.entity.User.password
  21:23:46,704 DEBUG Ejb3Column:187 - Binding column: Ejb3Column{table=org.hibernate.mapping.Table(AdUser), mappingColumn=password, insertable=true, updatable=true, unique=false}
  21:23:46,704 DEBUG PropertyBinder:175 - binding property password with lazy=false
  21:23:46,704 DEBUG SimpleValueBinder:294 - building SimpleValue for password
  21:23:46,704 DEBUG PropertyBinder:254 - Building property password
  21:23:46,706 DEBUG PropertyBinder:311 - Cascading password with null
  21:23:46,706 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  21:23:46,706 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for messageText
  21:23:46,706 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for message
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for title
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for id
  21:23:46,709 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for name
  21:23:46,711 DEBUG SimpleValueBinder:330 - setting SimpleValue typeName for password
  21:23:46,711 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  21:23:46,764 DEBUG Configuration:1211 - processing extends queue
  21:23:46,764 DEBUG Configuration:1215 - processing collection mappings
  21:23:46,764 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Category.adverts
  21:23:46,764 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Category.adverts
  21:23:46,769 DEBUG CollectionSecondPass:80 - Mapped collection key: categories_id, element: adverts_id
  21:23:46,769 DEBUG CollectionSecondPass:64 - Second pass for collection: sample.entity.Advert.categories
  21:23:46,769 DEBUG CollectionBinder:1137 - Binding as ManyToMany: sample.entity.Advert.categories
  21:23:46,771 DEBUG TableBinder:333 - Retrieving property sample.entity.Category.adverts
  21:23:46,771 DEBUG CollectionSecondPass:80 - Mapped collection key: adverts_id, element: categories_id
  21:23:46,771 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  21:23:46,771 DEBUG Configuration:1234 - processing association property references
  21:23:46,771 DEBUG Configuration:1256 - processing foreign key constraints
  21:23:46,771 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  21:23:46,774 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  21:23:46,774 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  21:23:46,774  INFO AnnotationConfiguration:450 - Hibernate Validator not found: ignoring
  21:23:46,784  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  21:23:46,784  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 0
  21:23:46,786  INFO DriverManagerConnectionProvider:68 - autocommit mode: false
  21:23:46,816  INFO DriverManagerConnectionProvider:103 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernate
  21:23:46,816  INFO DriverManagerConnectionProvider:106 - connection properties: {user=root, password=admin}
  21:23:46,819 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  21:23:46,819 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  21:23:47,039 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:mysql://localhost/hibernate, Isolation Level: 4
  21:23:47,039  INFO SettingsFactory:117 - RDBMS: MySQL, version: 5.6.22-log
  21:23:47,039  INFO SettingsFactory:118 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} )
  21:23:47,056  INFO Dialect:206 - Using dialect: org.hibernate.dialect.MySQLDialect
  21:23:47,061  INFO JdbcSupportLoader:79 - Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
  21:23:47,061 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  21:23:47,064  INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
  21:23:47,064  INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
  21:23:47,066  INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
  21:23:47,066  INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
  21:23:47,066  INFO SettingsFactory:180 - JDBC batch size: 15
  21:23:47,066  INFO SettingsFactory:183 - JDBC batch updates for versioned data: disabled
  21:23:47,066  INFO SettingsFactory:188 - Scrollable result sets: enabled
  21:23:47,066 DEBUG SettingsFactory:192 - Wrap result sets: disabled
  21:23:47,069  INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): enabled
  21:23:47,069  INFO SettingsFactory:204 - Connection release mode: auto
  21:23:47,069  INFO SettingsFactory:228 - Maximum outer join fetch depth: 2
  21:23:47,069  INFO SettingsFactory:231 - Default batch fetch size: 1
  21:23:47,069  INFO SettingsFactory:235 - Generate SQL with comments: disabled
  21:23:47,069  INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
  21:23:47,069  INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
  21:23:47,071  INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  21:23:47,074  INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
  21:23:47,074  INFO SettingsFactory:251 - Query language substitutions: {}
  21:23:47,074  INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
  21:23:47,074  INFO SettingsFactory:261 - Second-level cache: enabled
  21:23:47,076  INFO SettingsFactory:265 - Query cache: disabled
  21:23:47,076  INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
  21:23:47,076  INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
  21:23:47,076  INFO SettingsFactory:284 - Structured second-level cache entries: disabled
  21:23:47,079 DEBUG SQLExceptionConverterFactory:75 - Using dialect defined converter
  21:23:47,084  INFO SettingsFactory:304 - Echoing all SQL to stdout
  21:23:47,084  INFO SettingsFactory:313 - Statistics: disabled
  21:23:47,084  INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
  21:23:47,086  INFO SettingsFactory:332 - Default entity-mode: pojo
  21:23:47,086  INFO SettingsFactory:336 - Named query checking : enabled
  21:23:47,086  INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
  21:23:47,126  INFO SessionFactoryImpl:199 - building session factory
  21:23:47,131 DEBUG SessionFactoryImpl:206 - JDK 1.5 concurrent classes present
  21:23:47,134 DEBUG SessionFactoryImpl:218 - Statistics initialized with org.hibernate.stat.ConcurrentStatisticsImpl
  21:23:47,134 DEBUG SessionFactoryImpl:238 - Session factory constructed with filter configurations : {}
  21:23:47,134 DEBUG SessionFactoryImpl:242 - instantiating session factory with properties: {java.runtime.name=Java(TM) SE Runtime Environment, hibernate.connection.password=admin, sun.boot.library.path=C:\sivravis\tools\Java\jre7\bin, java.vm.version=23.25-b01, hibernate.connection.username=root, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\sivravis\dev\studies\BeginingHibernate, java.runtime.version=1.7.0_25-b17, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\sivravis\tools\Java\jre7\lib\endorsed, os.arch=amd64, java.io.tmpdir=C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\sivravis\tools\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\sivravis\tools\instantclient_11_2;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CREDANT\Shield v7.1;c:\sivravis\path;C:\sivravis\tools\Java\jdk1.7.0_25\bin;C:\Windows\System32;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;C:\Program Files\Code Collaborator Client;C:\sivravis\tools\apache-maven-3.0.5\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\sivravis\tools\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;C:\Program Files\CREDANT\Shield v7.3\;., java.specification.name=Java Platform API Specification, java.class.version=51.0, hibernate.connection.pool_size=0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\sivravis.PARTNERS, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, hibernate.connection.driver_class=com.mysql.jdbc.Driver, user.name=sivravis, java.class.path=/C:/sivravis/tools/eclipse/mars/eclipse/plugins/org.testng.eclipse_6.8.6.20141201_2240/lib/testng.jar;C:\sivravis\dev\studies\BeginingHibernate\bin;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\antlr-2.7.6.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\commons-collections-3.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\dom4j-1.6.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\javassist-3.9.0.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\jta-1.1.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\jpa\hibernate-jpa-2.0-api-1.0.0.Final.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\hibernate-tools-3.2.4.GA.jar\hibernate-tools-3.2.4.GA.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\hibernate3.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\log4j\log4j-1.2.11.jar;C:\sivravis\tools\eclipse\mars\eclipse\plugins\org.testng.eclipse_6.8.6.20141201_2240\lib\testng.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-api-1.5.8.jar;C:\sivravis\misc\study\books\hibernate\hibernate-library\lib\required\slf4j-1.5.8\slf4j-log4j12-1.5.8.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_cs.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_de_DE.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_es.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_fr.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_hu.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_it.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ja_JP.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ko_KR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pl.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_pt_BR.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_ru.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_CN.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derbyLocale_zh_TW.jar;C:\sivravis\tools\Java\jdk1.8.0_05\db\lib\derby.jar;C:\Program Files\MySQL\MySQL Server 5.6\com.mysql.jdbc_5.1.5.jar\com.mysql.jdbc_5.1.5.jar, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\sivravis\tools\Java\jre7, sun.java.command=org.testng.remote.RemoteTestNG -serport 50466 -d C:\sivravis\dev\studies\BeginingHibernate\test-output C:\Users\SIVRAV~1.PAR\AppData\Local\Temp\testng-eclipse-1891024583\testng-customsuite.xml, hibernate.connection.url=jdbc:mysql://localhost/hibernate, hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.specification.vendor=Oracle Corporation, user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.7.0_25, java.ext.dirs=C:\sivravis\tools\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\sivravis\tools\Java\jre7\lib\resources.jar;C:\sivravis\tools\Java\jre7\lib\rt.jar;C:\sivravis\tools\Java\jre7\lib\sunrsasign.jar;C:\sivravis\tools\Java\jre7\lib\jsse.jar;C:\sivravis\tools\Java\jre7\lib\jce.jar;C:\sivravis\tools\Java\jre7\lib\charsets.jar;C:\sivravis\tools\Java\jre7\lib\jfr.jar;C:\sivravis\tools\Java\jre7\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, hibernate.hbm2ddl.auto=create, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}
  21:23:47,136 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,139 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,139 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,139 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,264 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [adverts], existing type = [org.hibernate.type.SetType(sample.entity.Category.adverts)], incoming type = [org.hibernate.type.SetType(sample.entity.Category.adverts)]
  21:23:47,264 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,264 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,266 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Category
  21:23:47,269 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Category where id =?
  21:23:47,269 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select category_.id, category_.title as title2_ from Category category_ where category_.id=?
  21:23:47,269 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Category (title, id) values (?, ?)
  21:23:47,269 DEBUG AbstractEntityPersister:2948 -  Update 0: update Category set title=? where id=?
  21:23:47,269 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Category where id=?
  21:23:47,269 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Category (title) values (?)
  21:23:47,271 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [categories], existing type = [org.hibernate.type.SetType(sample.entity.Advert.categories)], incoming type = [org.hibernate.type.SetType(sample.entity.Advert.categories)]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [message], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [title], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user], existing type = [org.hibernate.type.ManyToOneType(sample.entity.User)], incoming type = [org.hibernate.type.ManyToOneType(sample.entity.User)]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [user.id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,274 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,274 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Advert
  21:23:47,274 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Advert where id =?
  21:23:47,274 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select advert_.id, advert_.message as message1_, advert_.title as title1_, advert_.aduser as aduser1_ from Advert advert_ where advert_.id=?
  21:23:47,274 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Advert (message, title, aduser, id) values (?, ?, ?, ?)
  21:23:47,274 DEBUG AbstractEntityPersister:2948 -  Update 0: update Advert set message=?, title=?, aduser=? where id=?
  21:23:47,274 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Advert where id=?
  21:23:47,276 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Advert (message, title, aduser) values (?, ?, ?)
  21:23:47,279 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [messageText], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,279 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.IntegerType@5bc9b01d], incoming type = [org.hibernate.type.IntegerType@5bc9b01d]
  21:23:47,279 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.Message
  21:23:47,279 DEBUG AbstractEntityPersister:2941 -  Version select: select id from Message where id =?
  21:23:47,279 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select message_.id, message_.messageText as messageT2_0_ from Message message_ where message_.id=?
  21:23:47,279 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into Message (messageText, id) values (?, ?)
  21:23:47,279 DEBUG AbstractEntityPersister:2948 -  Update 0: update Message set messageText=? where id=?
  21:23:47,279 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from Message where id=?
  21:23:47,279 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into Message (messageText) values (?)
  21:23:47,281 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [name], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,281 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [password], existing type = [org.hibernate.type.StringType@469b762c], incoming type = [org.hibernate.type.StringType@469b762c]
  21:23:47,281 DEBUG AbstractPropertyMapping:141 - Skipping duplicate registration of path [id], existing type = [org.hibernate.type.LongType@4331d29e], incoming type = [org.hibernate.type.LongType@4331d29e]
  21:23:47,284 DEBUG AbstractEntityPersister:2936 - Static SQL for entity: sample.entity.User
  21:23:47,284 DEBUG AbstractEntityPersister:2941 -  Version select: select id from AdUser where id =?
  21:23:47,284 DEBUG AbstractEntityPersister:2944 -  Snapshot select: select user_.id, user_.name as name3_, user_.password as password3_ from AdUser user_ where user_.id=?
  21:23:47,284 DEBUG AbstractEntityPersister:2947 -  Insert 0: insert into AdUser (name, password, id) values (?, ?, ?)
  21:23:47,284 DEBUG AbstractEntityPersister:2948 -  Update 0: update AdUser set name=?, password=? where id=?
  21:23:47,284 DEBUG AbstractEntityPersister:2949 -  Delete 0: delete from AdUser where id=?
  21:23:47,284 DEBUG AbstractEntityPersister:2953 -  Identity insert: insert into AdUser (name, password) values (?, ?)
  21:23:47,289 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Category.adverts
  21:23:47,289 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (categories_id, adverts_id) values (?, ?)
  21:23:47,289 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set adverts_id=? where categories_id=? and adverts_id=?
  21:23:47,289 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where categories_id=? and adverts_id=?
  21:23:47,289 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where categories_id=?
  21:23:47,289 DEBUG AbstractCollectionPersister:611 - Static SQL for collection: sample.entity.Advert.categories
  21:23:47,291 DEBUG AbstractCollectionPersister:613 -  Row insert: insert into link_category_advert (adverts_id, categories_id) values (?, ?)
  21:23:47,291 DEBUG AbstractCollectionPersister:616 -  Row update: update link_category_advert set categories_id=? where adverts_id=? and categories_id=?
  21:23:47,291 DEBUG AbstractCollectionPersister:619 -  Row delete: delete from link_category_advert where adverts_id=? and categories_id=?
  21:23:47,291 DEBUG AbstractCollectionPersister:622 -  One-shot delete: delete from link_category_advert where adverts_id=?
  21:23:47,309 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [NONE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [UPGRADE_NOWAIT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [FORCE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_READ]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? lock in share mode
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_WRITE]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [PESSIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=? for update
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,311 DEBUG EntityLoader:124 - Static select for entity sample.entity.Category [OPTIMISTIC_FORCE_INCREMENT]: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,316 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,319 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Category: select category0_.id as id2_0_, category0_.title as title2_0_ from Category category0_ where category0_.id=?
  21:23:47,331 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [NONE]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [READ]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [UPGRADE_NOWAIT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [FORCE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_READ]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? lock in share mode
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_WRITE]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [PESSIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=? for update
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  21:23:47,334 DEBUG EntityLoader:124 - Static select for entity sample.entity.Advert [OPTIMISTIC_FORCE_INCREMENT]: select advert0_.id as id1_1_, advert0_.message as message1_1_, advert0_.title as title1_1_, advert0_.aduser as aduser1_1_, user1_.id as id3_0_, user1_.name as name3_0_, user1_.password as password3_0_ from Advert advert0_ left outer join AdUser user1_ on advert0_.aduser=user1_.id where advert0_.id=?
  21:23:47,336 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  21:23:47,336 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Advert: select advert0_.id as id1_0_, advert0_.message as message1_0_, advert0_.title as title1_0_, advert0_.aduser as aduser1_0_ from Advert advert0_ where advert0_.id=?
  21:23:47,336 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [NONE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,336 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,336 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update
  21:23:47,336 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [UPGRADE_NOWAIT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update
  21:23:47,339 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [FORCE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update
  21:23:47,339 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_READ]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? lock in share mode
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_WRITE]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [PESSIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=? for update
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.Message [OPTIMISTIC_FORCE_INCREMENT]: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,341 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,341 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.Message: select message0_.id as id0_0_, message0_.messageText as messageT2_0_0_ from Message message0_ where message0_.id=?
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [NONE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,341 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [UPGRADE_NOWAIT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [FORCE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_READ]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? lock in share mode
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_WRITE]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [PESSIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=? for update
  21:23:47,344 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,346 DEBUG EntityLoader:124 - Static select for entity sample.entity.User [OPTIMISTIC_FORCE_INCREMENT]: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,346 DEBUG EntityLoader:56 - Static select for action ACTION_MERGE on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,346 DEBUG EntityLoader:56 - Static select for action ACTION_REFRESH on entity sample.entity.User: select user0_.id as id3_0_, user0_.name as name3_0_, user0_.password as password3_0_ from AdUser user0_ where user0_.id=?
  21:23:47,351 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Category.adverts: select adverts0_.categories_id as categories1_2_2_, adverts0_.adverts_id as adverts2_2_, advert1_.id as id1_0_, advert1_.message as message1_0_, advert1_.title as title1_0_, advert1_.aduser as aduser1_0_, user2_.id as id3_1_, user2_.name as name3_1_, user2_.password as password3_1_ from link_category_advert adverts0_ inner join Advert advert1_ on adverts0_.adverts_id=advert1_.id left outer join AdUser user2_ on advert1_.aduser=user2_.id where adverts0_.categories_id=?
  21:23:47,351 DEBUG BasicCollectionLoader:82 - Static select for collection sample.entity.Advert.categories: select categories0_.adverts_id as adverts2_1_1_, categories0_.categories_id as categories1_1_, category1_.id as id2_0_, category1_.title as title2_0_ from link_category_advert categories0_ inner join Category category1_ on categories0_.categories_id=category1_.id where categories0_.adverts_id=?
  21:23:47,351 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
  21:23:47,354 DEBUG SessionFactoryObjectFactory:99 - registered: 8ac148634a10db78014a10db7c570000 (unnamed)
  21:23:47,354  INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
  21:23:47,354 DEBUG SessionFactoryImpl:378 - instantiated session factory
  21:23:47,356 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  21:23:47,359 DEBUG AnnotationConfiguration:617 - Process hbm files
  21:23:47,359 DEBUG AnnotationConfiguration:625 - Process annotated classes
  21:23:47,359 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  21:23:47,359 DEBUG Configuration:1211 - processing extends queue
  21:23:47,359 DEBUG Configuration:1215 - processing collection mappings
  21:23:47,359 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  21:23:47,359 DEBUG Configuration:1234 - processing association property references
  21:23:47,359 DEBUG Configuration:1256 - processing foreign key constraints
  21:23:47,359 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  21:23:47,359 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  21:23:47,359 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  21:23:47,359 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,361 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,361 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,361 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,361 DEBUG AnnotationConfiguration:318 - Execute first pass mapping processing
  21:23:47,361 DEBUG AnnotationConfiguration:617 - Process hbm files
  21:23:47,361 DEBUG AnnotationConfiguration:625 - Process annotated classes
  21:23:47,361 DEBUG AnnotationConfiguration:486 - processing fk mappings (*ToOne and JoinedSubclass)
  21:23:47,361 DEBUG Configuration:1211 - processing extends queue
  21:23:47,361 DEBUG Configuration:1215 - processing collection mappings
  21:23:47,361 DEBUG Configuration:1226 - processing native query and ResultSetMapping mappings
  21:23:47,361 DEBUG Configuration:1234 - processing association property references
  21:23:47,361 DEBUG Configuration:1256 - processing foreign key constraints
  21:23:47,364 DEBUG Configuration:1339 - resolving reference to class: sample.entity.User
  21:23:47,364 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Category
  21:23:47,364 DEBUG Configuration:1339 - resolving reference to class: sample.entity.Advert
  21:23:47,364 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,364 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,364 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,364 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,364 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,366 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,366 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,366 DEBUG DefaultIdentifierGeneratorFactory:89 - Setting dialect [org.hibernate.dialect.MySQLDialect]
  21:23:47,369  INFO SchemaExport:226 - Running hbm2ddl schema export
  21:23:47,369 DEBUG SchemaExport:242 - import file not found: /import.sql
  21:23:47,369  INFO SchemaExport:251 - exporting generated schema to database
  21:23:47,369 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  21:23:47,369 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  21:23:47,386 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:mysql://localhost/hibernate, Isolation Level: 4
  21:23:47,386 DEBUG SchemaExport:377 - alter table Advert drop foreign key FK74A35BF4F310D740
  21:23:47,396 DEBUG SchemaExport:362 - Unsuccessful: alter table Advert drop foreign key FK74A35BF4F310D740
  21:23:47,396 DEBUG SchemaExport:363 - Table 'hibernate.advert' doesn't exist
  21:23:47,396 DEBUG SchemaExport:377 - alter table link_category_advert drop foreign key FKA7C387F06613C4A3
  21:23:47,396 DEBUG SchemaExport:362 - Unsuccessful: alter table link_category_advert drop foreign key FKA7C387F06613C4A3
  21:23:47,399 DEBUG SchemaExport:363 - Table 'hibernate.link_category_advert' doesn't exist
  21:23:47,399 DEBUG SchemaExport:377 - alter table link_category_advert drop foreign key FKA7C387F07F2F2556
  21:23:47,399 DEBUG SchemaExport:362 - Unsuccessful: alter table link_category_advert drop foreign key FKA7C387F07F2F2556
  21:23:47,399 DEBUG SchemaExport:363 - Table 'hibernate.link_category_advert' doesn't exist
  21:23:47,399 DEBUG SchemaExport:377 - drop table if exists AdUser
  21:23:47,401 DEBUG SchemaExport:377 - drop table if exists Advert
  21:23:47,401 DEBUG SchemaExport:377 - drop table if exists Category
  21:23:47,404 DEBUG SchemaExport:377 - drop table if exists Message
  21:23:47,404 DEBUG SchemaExport:377 - drop table if exists link_category_advert
  21:23:47,406 DEBUG SchemaExport:377 - create table AdUser (id bigint not null auto_increment, name varchar(255) unique, password varchar(255), primary key (id))
  21:23:47,424 DEBUG SchemaExport:377 - create table Advert (id bigint not null auto_increment, message varchar(255), title varchar(255), aduser bigint, primary key (id))
  21:23:47,439 DEBUG SchemaExport:377 - create table Category (id bigint not null auto_increment, title varchar(255) unique, primary key (id))
  21:23:47,461 DEBUG SchemaExport:377 - create table Message (id integer not null auto_increment, messageText varchar(255), primary key (id))
  21:23:47,476 DEBUG SchemaExport:377 - create table link_category_advert (categories_id bigint not null, adverts_id bigint not null, primary key (categories_id, adverts_id))
  21:23:47,491 DEBUG SchemaExport:377 - alter table Advert add index FK74A35BF4F310D740 (aduser), add constraint FK74A35BF4F310D740 foreign key (aduser) references AdUser (id)
  21:23:47,529 DEBUG SchemaExport:377 - alter table link_category_advert add index FKA7C387F06613C4A3 (categories_id), add constraint FKA7C387F06613C4A3 foreign key (categories_id) references Category (id)
  21:23:47,571 DEBUG SchemaExport:377 - alter table link_category_advert add index FKA7C387F07F2F2556 (adverts_id), add constraint FKA7C387F07F2F2556 foreign key (adverts_id) references Advert (id)
  21:23:47,615  INFO SchemaExport:268 - schema export complete
  21:23:47,617 DEBUG DriverManagerConnectionProvider:158 - closing JDBC connection
  21:23:47,617 DEBUG SessionFactoryImpl:550 - Checking 0 named HQL queries
  21:23:47,617 DEBUG SessionFactoryImpl:570 - Checking 0 named SQL queries
  21:23:47,645 DEBUG SessionImpl:257 - opened session at timestamp: 14176220276
  21:23:47,645 DEBUG JDBCTransaction:82 - begin
  21:23:47,645 DEBUG ConnectionManager:444 - opening JDBC connection
  21:23:47,647 DEBUG DriverManagerConnectionProvider:116 - total checked-out connections: 0
  21:23:47,647 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
  21:23:47,657 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:mysql://localhost/hibernate, Isolation Level: 4
  21:23:47,657 DEBUG JDBCTransaction:87 - current autocommit status: false
  21:23:47,657 DEBUG JDBCContext:237 - after transaction begin
  21:23:47,670 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid] -> [class org.hibernate.id.UUIDHexGenerator]
  21:23:47,670 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [hilo] -> [class org.hibernate.id.TableHiLoGenerator]
  21:23:47,670 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [assigned] -> [class org.hibernate.id.Assigned]
  21:23:47,670 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [identity] -> [class org.hibernate.id.IdentityGenerator]
  21:23:47,670 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [select] -> [class org.hibernate.id.SelectGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence] -> [class org.hibernate.id.SequenceGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [seqhilo] -> [class org.hibernate.id.SequenceHiLoGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [increment] -> [class org.hibernate.id.IncrementGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [foreign] -> [class org.hibernate.id.ForeignGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [guid] -> [class org.hibernate.id.GUIDGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [uuid.hex] -> [class org.hibernate.id.UUIDHexGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [sequence-identity] -> [class org.hibernate.id.SequenceIdentityGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-sequence] -> [class org.hibernate.id.enhanced.SequenceStyleGenerator]
  21:23:47,672 DEBUG DefaultIdentifierGeneratorFactory:99 - Registering IdentifierGenerator strategy [enhanced-table] -> [class org.hibernate.id.enhanced.TableGenerator]
  21:23:47,672  INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
  21:23:47,675  INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
  21:23:47,677 DEBUG EJB3DTDEntityResolver:55 - Resolving XML entity -//Hibernate/Hibernate Configuration DTD 3.0//EN : http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
  21:23:47,677 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
  21:23:47,677 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
  21:23:47,677 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
  21:23:47,682 DEBUG Configuration:1479 - hibernate.connection.url=jdbc:mysql://localhost/hibernate
  21:23:47,682 DEBUG Configuration:1479 - hibernate.connection.driver_class=com.mysql.jdbc.Driver
  